[dokuwiki] Re: syntax hilighting

  • From: Galen Johnson <gjohnson@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 29 Dec 2005 22:13:00 -0500

Galen Johnson wrote:

>Chris Smith wrote:
>
>  
>
>>Galen Johnson wrote:
>>
>>    
>>
>>>OK...now let's say I want to go ahead and set up a style sheet with all
>>>the different syntax highlighing that I just spent 2 days adding to
>>>geshi (since the hilighting I needed wasn't already part of geshi).  I
>>>am already using a template other than default.  However, I see no
>>>style.css files in any of the templates I've looked in thusfar.  Do I
>>>need to copy the style.css to somewhere under the template folder?  If
>>>so, where (template making docs are a bit lacking here)? Do I just edit
>>>the design.css file within the template (similar to what was necessary
>>>for the note plugin)?  Can I create a stylesheet (php.css for example)
>>>and include it in another?  (Just curious as I can't find it
>>>documented...can classes have spaces within it?  the code classes are
>>>"code lang"...)
>>>
>>>=G=
>>>  
>>>      
>>>
>>for details on the template stylesheets, see
>>http://wiki.splitbrain.org/wiki:stylesheets.  style.css is in
>>lib/styles directory.
>>
>>I think the simplest thing, is to edit your template (main.php) and
>>add an additional stylesheet via a
>><link rel="stylesheet" type="text/css" href="...." />
>>
>>and add your geshi styles in there.
>>
>>Chris
>>
>>
>>    
>>
>Thanks for all the insight, Chris.  I'll continue along that tack. 
>Might even take the time to create a stylesheet for each syntax file. 
>Gotta learn css at some point (even if it is just a repetative task).
>
>=G=
>  
>
Apparently, I'm a complete idiot...I can't get this to work...period. 
I've set up a file called code.css...within this file is only the
snippets for the default code class as it is defined in the styles.css
file...I've also tried adding my own class like you described above...
(.code.sas .br0  { color: #66cc66; } ) and (.code sas .br0  { color:
#66cc66; } note the space instead of the '.')

=G=
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: