Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not quite HP Calculators - but related (/forum-8.html) +--- Thread: Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly (/thread-15455.html) |
Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Jonathan Busby - 08-10-2020 07:58 PM 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 :
Any suggestions would be very welcome. Regards, Jonathan RE: Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Paul Dale - 08-11-2020 09:34 AM What do other assembler listing on Wikipedia use? RE: Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Jonathan Busby - 08-11-2020 06:55 PM (08-11-2020 09:34 AM)Paul Dale Wrote: What do other assembler listing on Wikipedia use? AFAIK, on Wikipedia, most of the assembly language source code examples use the "<syntaxhighlight>" tag ( See here ) which uses the Pygments library. I do have my own syntax highlighting preferences but I'd like a scheme that the majority of the HP Saturn assembly community could agree on. Regards, Jonathan RE: Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - rprosperi - 08-12-2020 01:10 AM (08-11-2020 06:55 PM)Jonathan Busby Wrote: I do have my own syntax highlighting preferences but I'd like a scheme that the majority of the HP Saturn assembly community could agree on. There is little agreement here on which tools or even on which syntax should be used for Saturn Assembly coding; seeking agreement on syntax highlighting could be pushing the envelope... but it's good to try! RE: Suggestions needed for new Pygments syntax highlighting lexer for Saturn assembly - Jonathan Busby - 08-12-2020 07:05 PM (08-12-2020 01:10 AM)rprosperi Wrote:(08-11-2020 06:55 PM)Jonathan Busby Wrote: I do have my own syntax highlighting preferences but I'd like a scheme that the majority of the HP Saturn assembly community could agree on. You're probably right How about I use my custom GtkSourceView library syntax highlighting preferences which I use with Xed and Gedit and whatnot and then post a sample for everyone to see? I mostly use the libgtksourceview 3.0 default colors. Regards, Jonathan |