2

I have blog that is using Google Code Prettify. My blog has a lot of 6502 Assembly Language code and I would like to add the instructions and directives.

I was hoping someone out there has learned how to add custom languages. Or better yet, knows of a 6502 CSS file they could share?

alex
  • 479,566
  • 201
  • 878
  • 984
JohnnyStarr
  • 619
  • 8
  • 21
  • MOS Technology actually. MOS was made up of former Motorola employees but who cares right? – JohnnyStarr Apr 23 '13 at 22:14
  • In fact you are lucky with that. The instructions have strict 3 letter mnemonics and they are less then 255. So you can even process them by javascript, reading from array, aha! instruction, document write, aha! parameter , document write etc....(with different style classes resulting with a hopefully beautiful output) – Volkan Apr 23 '13 at 22:20
  • Kind of defeats the purpose of using an automated highlighting script though. – JohnnyStarr Apr 23 '13 at 22:22

1 Answers1

2

I don't know about Google Code Prettify, but I use Alex Gorbatchev's SyntaxHighlighter stylesheet in my 6502-based blogs on Blogger.

SyntaxHighlighter is here.

A quickstart guide for it is here.

An example of its use for 6502 on one of my blogs is here.

alex
  • 479,566
  • 201
  • 878
  • 984
Eight-Bit Guru
  • 9,756
  • 2
  • 48
  • 62