On 12/08/2012 00:19, Patrick wrote:
I am trying to create a little book/pamphlet that has coloured syntax highlighting of code.
It looks like there was a plug-in that would have been perfect, inksyntax, but it seems abandoned.
Here is the dead link:
The project seems to have been built on highlight and pygments.
The highlight command works great for me and now I have a svg of the code sample with syntax highlighting.
The problem is the svg utilizes an external css sheet and inkscape and scribus cannot handle it.
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?
Attaching the source tarballs of inksyntax v0.1 and v0.1.1 (archived locally, downloaded in late 2009) - maybe this helps (AFAICT basic features work ok [1] in current Inkscape - see attached sample SVG generated with Inkscape 0.48.3.1, InkSyntax 0.1.1, pygments 1.4, python 2.7.3).
~suv
[1] Unicode handling (?) possibly needs some rework (based on the attached sample) - but it could also be a local issue with the external python modules required by the extension on OS X (I didn't further investigate).