Forums / Setup & design / how to colorize the code ?
Pascal France
Sunday 25 May 2008 5:45:00 am
Hi,
How can I colorize the code examples that I add in my articles like what is done on this page:http://ez.no/developer/articles/creating_datatypes_in_ez_publish_4/a_moment_in_time_the_ymcdatatypedatetime_class
Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
Kristof Coomans
Sunday 25 May 2008 8:06:30 am
Hi Pascal
Take a look at the ezgeshi extension: http://projects.ez.no/ezgeshi
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Friday 13 June 2008 3:09:16 am
I followed the advice of Kristof but once the extension is installed it seems that the default «html» class doesn't work any more.
I mean if I use:
<literal class="html"><h1 style="color: red;">Pascal</h1></literal>
the displayed result is:
<h1 style="color: red;">Pascal</h1>
and not «Pascal» as a red h1 title.
The solution I have found is to remove this file: extension/ezsh/design/standard/templates/content/datatype/view/ezxmltags/literal.tpl so that the file: design/standard/templates/content/datatype/view/ezxmltags/literal.tplis used instead of.
Maybe is there another solution ?