Hi Sylvain,
Am 04.04.2016 um 20:33 schrieb Sylvain Chiron:
- Seems that was a CMS plugin that was lost along the way.
CMS Pygments plugin - color coded code example. I've rescued these 4 from my cms backups now, it must have been one of the following code bits (I think it's the second one, as I remember the code you're asking about contained Krzysztof's name.)
Yeah, it's certainly this one as it contains the parts evoked in the corresponding section.
Could you convert the formatting back to unicode, Sylvain, so it will look alright and insert as <code> into the correct place?
I don't know how to convert efficiently; I re-formatted at hand with a text editor and a Find&Replace tool. You mean, insert as <pre>? I did it on the French version.
- Yes, pre makes more sense here than the code tag provided by the editor. Thanks for putting it in.
I don't know where the other three are missing - if you can figure that out, we can reinsert those into their corresponding places, too.
Probably on the same page: they demonstrate other elements of the coding style. I put the codes on the page: https://inkscape.org/fr/developper/style-du-code-source/ Please check everything's good and copy it to the English version.
- Could you ask the devs on the developers' mailing list about checking?
The codes look a bit big; we could reduce the font size, or put them in a fixed-height block with a scrollbar…
- Our pre CSS is this currently: pre { background-color: #f5f5f5; margin: 0.5ex 0; padding: 0.5ex 0.5em; }
You're welcome to improve on it, or create a bug report in inkscape-web, so we can follow up on this - or you can just style it inline :)
Maybe there's also an option to use a code plugin again, if there exists one (I couldn't find one yet). The pygments plugin was probably removed because it was incompatible (as the last release date from 2010 seems to hint at compatibility issues).
Regards, Maren