I’m working on PTX syntax highlighting (for Textpad 5) right now ! External Image =D (Making it with LOOOOUUUVVVEE =D)
It will be done soon, and then I will upload it somewhere, perhaps here, perhaps www.textpad.com, perhaps on my own webdrive… and I will surely make a screenshot, to show how (possibily beautifull) it looks ! External Image =D (colors are personal and can be customized ! External Image =D Currently I am apperently into black backgrounds ! External Image =D)
I am very curious how it will look like ! External Image =D
I will show two screenshots at least. I will show a screenshot with textpad 5’s default coloring (white background) as to not scare too many people off ! External Image =D
And the second screenshot will have my whacky funky high contrast high fidelity high diffferences coloring probably black background ! External Image =D
This is my first attempt at PTX 2.3 Syntax Highlighting as promised here is the very first screenshot with Textpad 5 defaults:
(However since there are only 7 keyword groups in Textpad 5 and PTX has many more groups I still have to decided how to group them)
(For now this screenshot shows my first simply following of the documentation)
I was thinking about seperating “integer” and “floating point” instructions into different color groups… but I guess that’s not possible because they share the same menomics… however ptx seems to use type specifiers which indicate what type of instruction to use, so perhaps that’s already ok.
I must warn you, the colors of textpad 5 are kinda dull and pretty much all the same, none the less here it is, the very first PTX 2.3 Syntax Highlighting screenshot ! External Image =D
(Internal syntax highlighting version 2)
It took a bit longer than I thought, but gjez is PTX a big instruction set with lot’s of modifiers ! Interesting… I even learned a new trick from it ! External Image =D
Anyway here is the final screen shot.
I shall now start releasing the syntax file so other people can enjoy it, I shall also make one last “default colors” screenshot to see how that looks like (probably not as cool as my coloring !External Image)
People could also move around the text inside the *.syn to re-group… the *.syn files are just text files, so they easy modifieable ! External Image :)
Ok one more, last screenshot, to show the beautifully unmangled names thanks to wrapping global with extern “C” { } (thanks to seibert for tip !External Image =D):