I've created a syntax highlighting package for Sublime Text for ez80 assembly, mostly because the comments being the same color as the code was distracting me.

You can find it here: https://github.com/commandblockguy/ez80-sublime-syntax

To use, just copy the sublime-syntax file into your Packages/User folder in your Sublime Text config, which you can generally find in ~/.config/sublime-text-3

I may still add a few more features to it, including marking mnemonics with arguments that do not form a valid opcode (e.g., add bc,de) pink to inform the user that the file will not compile. This might be annoying or cause issues if the user had a custom definition for that case (e.g., having add bc,de expand into a monstrosity like push hl \ ld hl,bc \ add hl,de \ ld bc,hl \ pop hl - please don't do that, though), so I might make two separate versions of the file.
Nice work!

I like the idea about invalid opcodes and such, that could be handy.
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum