DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:code_css

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tips:code_css [2012-03-31 08:40] 116.26.128.238tips:code_css [2013-12-15 18:39] – fix error in line 832 of the styles (within visualfoxpro section) ChrisS
Line 9: Line 9:
  
 Copy the parts which define your wanted languages from the CSS below into a file called ''<dokuwiki>/conf/userstyle.css'' (create it if it doesn't exist). Copy the parts which define your wanted languages from the CSS below into a file called ''<dokuwiki>/conf/userstyle.css'' (create it if it doesn't exist).
 +
 +Note that you may need a space between the ''.code'' and the ''.language'' selectors. For example,\\
 +''.code .dos .kw1 { color: #00b100; font-weight: bold; }''
  
 If you want **all** those overrides you should run it through [[http://www.cssoptimiser.com|cssoptimiser.com]], which is a little bit more effective than DokuWiki's builtin compressor. If you want **all** those overrides you should run it through [[http://www.cssoptimiser.com|cssoptimiser.com]], which is a little bit more effective than DokuWiki's builtin compressor.
  
-<code css>+<code css geshi.css>
 /* actionscript overrides */ /* actionscript overrides */
 .code.actionscript .kw3 { color: #0066CC; } .code.actionscript .kw3 { color: #0066CC; }
Line 843: Line 846:
 .code.visualfoxpro .br0 { color: blue; } .code.visualfoxpro .br0 { color: blue; }
 .code.visualfoxpro .co1 { color: green; font-style: italic; } .code.visualfoxpro .co1 { color: green; font-style: italic; }
-.code.visualfoxpro .co2 { color: green font-style: italic; }+.code.visualfoxpro .co2 { color: greenfont-style: italic; }
 .code.visualfoxpro .kw1 { color: blue; } .code.visualfoxpro .kw1 { color: blue; }
 .code.visualfoxpro .kw2 { color: blue; } .code.visualfoxpro .kw2 { color: blue; }
Line 897: Line 900:
 </code> </code>
  
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
-[[http://corsages-boutonnieres.com corsage]][[http://corsages-boutonnieres.com boutonniere]] 
tips/code_css.txt · Last modified: 2016-09-13 02:58 by 2001:620:618:194:1:80b2:9415:1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki