Tuesday, 14 July 2009

VAX Macro in the 21st Century

My good friend and work colleague Andrew Beacock posted a recent blog update http://blog.andrewbeacock.com/ with some very nice formatted code which turned out to be a Javascript based syntax highlighter by Alex Gorbatchev which you can find at http://alexgorbatchev.com/wiki/SyntaxHighlighter. Seeing as how I couldn't sleep after about 5:30 this morning, I thought I'd follow Alex's excellent instructions to create a new syntax highlighter for VAX Macro. I'd previously created a VAX Macro mode for jEdit and it was fairly straightforward to cut and paste the opcodes, macros and operands.

The syntax highlighter script file can be found here: http://www.wickensonline.co.uk/scripts/shBrushVAXMacro32.js. Your source code must have open and close angle brackets converted into their html ampersand escaped equivalents. Just add this to your installation of Syntax Highlighter then you can call upon it to format you code, such as in this example.

2 comments:

abeacock said...

Not sure I want to be associated with VAX programming... ;)

Mark Wickens said...

Sorry, you've got no choice mate. Get close to the metal, that's what I say...