My favorites | Sign in
Project Logo
             
Search
for
Updated Oct 09, 2008 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 ilyaskazi, Sep 18, 2008

How to eliminate row numbers while copying? Even though we set as 'nogutter' the problem still exist. Numbers get copied which is very annoying while working with codes into our project.

When all selected and copied it shows row numbers. When some lines selected it shows hash (#).

Could you fix it?

Comment by chrismhough, Sep 18, 2008

where did you have to add the collapse code for it to function properly?

Comment by oripel, Sep 25, 2008

+1 on jakewharton's comment: allow positive and negative markups to override a default "nogutter" for example.

Hosted by Google Code