Drupal Geshi Cheatsheet
Since redoing this blog, I switched out the syntax highlighting to use the Drupal Geshi Module. For the love of everything, I can't remember the tricks for using it, so here’s a cheatsheet—mostly for myself but maybe you’ll find it valuable too. These are all HTML attributes you can add to your code block:
language: controls the language for rendering.line_numbering: controls whether line numbering is off, on, or fancy, with the valuesoff,normal, andfancyrespectively.- With fancy line numbers, you can use the attribute
intervalto control how often to show the line numbers. title: adds a title to the code block.special_lines: takes a comma-separated list of numbers and highlights them.linenumbers_start: controls what the first line number is.
(Information worked out from this code.)