What's new? | Help | Directory | Sign in
Google
syntaxhighlighter
Free syntax highlighter written in Java Script
  
  
  
  
    
Search
for
Updated May 11, 2007 by alex.gorbatchev
Labels: Documentation
Configuration  
Configuration options for code blocks.

Configuration option

These options allow you to individually configure text blocks.

nogutter Will display no gutter.
nocontrols Will display no controls at the top.
collapse Will collapse the block by default.
firstline[value] Will begin line count at value. Default value is 1.
showcolumns Will show row columns in the first line.

The options are passed together with the alias and are separated by a colon : character.

<pre name="code" class="html:nocontrols:firstline[10]">
... some code here ...
</pre>

Comment by jakewharton, Nov 14, 2007

It would be nice if you could set defaults for gutter, controls, collapse, and columns and then if say you disabled them you could reenable them with: <pre name="code" class="html:controls:gutter">

Comment by osuwebaccess, Feb 27, 2008

Can you make the "collapse" function a toggle? And is there a way to make the code boxes overflow beyond a certain size, say 25 lines of code?

Comment by taohuanteng, Mar 26, 2008

tinymce


Sign in to add a comment