I’ve just recently switched from PrismJS to Rainbow for highlighting code on web pages. I’ve released a plugin for the library to allow highlighting of Xojo code. I’ve also included CSS/SASS files for a light and dark theme which match the default colours used by the Xojo IDE. Hopefully someone will find it useful.
great job, thanks. What I notice, colors are not yet recognized. Do you see a possibility to modify your code, so that colors according to the pattern “&cFFFFFF00” (RRGGBBAA) will be displayed the same way as in the Xojo?
great job, thanks. What I notice, colors are not yet recognized. Do you see a possibility to modify your code, so that colors according to the pattern “&cFFFFFF00” (RRGGBBAA) will be displayed the same way as in the Xojo?[/quote]
Ah my oversight. Sorry. Sure, Ill do that this evening.
@Martin Trippensee: I’ve updated the repo. The plugin now correctly highlights Color literals just like the IDE does. Light and dark colour scheme added too.
I wasnt speaking to anyone in particular (well outside of myself!). But how many of us programmers like writing test code and write test code for everything? that would be a very small number, approaching zero. I try to write 10 (arbitary number I pulled out of my backside) UnitTests for every method I write. dont get me wrong, i dont. I try. then when I (or someone else) finds a bug/issue/edge-case that the code doesnt work, I write a UnitTest (or several) around that, and add them to the UnitTests.
and I know your comment was in good spirits/jokingly but for some that read our banter might not have seen it that way.
back to coding! maybe today I can actually write some Xojo code.