User login

syntax

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

See
(domain not renewed as of 2010 Nov. 4 - phpslacker.com/2009/02/05/vim-tips-for-php-programmers/ )

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

See also: http://2bits.com/articles/using-vim-and-xdebug-dbgp-for-debugging-drupal-or-any-php-application.html

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

Solution

(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