Monthly Archives: January 2015

Syntax Highlighting For Code Examples in Web Pages

The google-code-prettify project makes it possible to apply syntax highlighting to code examples in web pages. These notes are based on the Getting Started guide and README. Include the run_prettify.js script in your page. Put your code example inside one … Continue reading

Posted in Uncategorized | Leave a comment

Windows Command Line Reminders

dir /s/b *.mp3 – recursively list files with the specified extension > foo.txt – redirect output to specified file chdir – get full path to current directory %~nxf – gives filename.extension (How to get filename only without path in windows … Continue reading

Posted in Uncategorized | Leave a comment

A Couple of Useful CSS Transforms

Using Rotation to Create Vertical Headers You can use rotate(-90deg) (or DXImageTransform.Microsoft.BasicImage(rotation=3) for IE) to rotate a element to make it vertical. Sideways Headers Text Rotation Note: for browser support for transforms please see CSS3 Transforms. For information on applying … Continue reading

Posted in Web Design | Leave a comment