On Sat, 11 Aug 2012 18:19:28 -0400 Patrick <patrick@...2971...> wrote:
I am wondering if there is some tool to reintegrate the external css sheet back to inline or if if anyone has any suggestions on how I can accomplish my goal?
This nearly works:
Edit code with editor that has syntax highlighting /and/ html export. Vim is fine.
Use html2ps -U to convert to Postcript
Import to Inkscape (0.47 does it 1 page at a time)
Break down the multiple levels of grouping.
The only problem I can see is that the indentation is a bit wonky, with the first non-blank character of some indented lines being split from the remainder of the line. This comes when the end of one line is the same colour as the start of the next and the two bits are created as separate tspans in one text element. If couldn't tune it out in the many options to html2psrc I'd write something to hack the svg. Which is what the attached program snippet is doing anyway, hence using it as an example ;-)
Maybe Inkscape simply doesn't like my brace-indentation style.....
Mike