User login


Terminal-style syntax highlighting

For documenting on Drupal web sites steps taken on the command line, Agaric would like syntax highlighting of the sort GitHub is using. Note that it is adding a class to the pre tag, and then using spans within that!

Perhaps could be added as a feature to the Code filter module.

Vim as a PHP IDE

(domain not renewed as of 2010 Nov. 4 - )

Once it's set up right, you can use :make % to check your PHP syntax before loading the code in a browser.

See also:

How to use Less Than or Greater Than in a switch statement


(From rnreekez in the comments, syntax modified to conform to Drupal's more verbose coding standards.)

Technically you want your switch statement to process for all things TRUE.

Syndicate content