Post Reply 
Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly
08-10-2020, 07:58 PM (This post was last modified: 08-10-2020 08:00 PM by Jonathan Busby.)
Post: #1
Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly
I've been re-working the HP Saturn Wikipedia article and I would like to have the example assembly code section syntax highlighted. This is done with the Python based Pygments library. I have to implement a new lexer for HP Tools / Jazz syntax. This in itself isn't that difficult ( see : https://pygments.org/docs/lexerdevelopment/ ) but I'd like to know if anyone has any suggestions for how the elements of the assembly source should be colored. I took a look at the Debug4x syntax highlighter and I don't particularly like its choice of colors, so suggestions are welcome. I need color suggestions for :
  • macros
  • instructions
  • register fields
  • registers
  • comments
  • conditional compilation pseudo-ops
  • labels
  • and possibly some other things that I've forgotten to list

Any suggestions would be very welcome.

Regards,

Jonathan

Aeternitas modo est. Longa non est, paene nil.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Jonathan Busby - 08-10-2020 07:58 PM



User(s) browsing this thread: 1 Guest(s)