Just to avoid misunderstanding : my need was not to ad CSS instructions to my template, but to post out some code snippet formatted and indented to some technical articles that i have to publish.
I could be as CSS as Php as Python:
Code: Select all
>>> a = 12
>>> b = 3
>>> print a,b,(a – b)
12 3 9
I solved it at the moment with a hack that perhaps works, but it is surely not correct:
1) I have observed that for any reason, unknown to me, that the instructions
Code: Select all
<pre>
{literal}
//my code sample
{/literal}
</pre>
was originating a black background with lenght 100% .
I jus have added to main main_css_file.css the instructions:
then in the page or news article i insert this instruction:
Code: Select all
<div id="pre_box">
<pre>
{literal}
//my code sample
{/literal}
</pre>
</div>
and cmsms display my sample code pre-formatted but in white color on a black background.
Not so beautiful but working.
Maybe somebody has a better solution?