Syntax colouring for RISC OS files
Charles Ferguson (8243) 427 posts |
Hiya, Over the past year or so I’ve released/updated support for syntax colouring RISC OS filetypes in a few open source components. As I’ve just had the most recent accepted, I thought I’d mention them here… Sublime Text syntax mode for RISC OS Commands: Nano editor syntax mode for RISC OS filetypes: CodeMirror online editor syntax mode for RISC OS filetypes: Pygments colouring for BBC BASIC files: How useful this is to anyone is really down to whether you use these editors or tools, but they are available. |
Steve Fryatt (216) 2103 posts |
Some of those definitely look useful! :-) In a similar vein, I’ve got a mostly functional “BBC BASIC Text” syntax colouring mode for Visual Studio Code here. In the event that I’m not the only person in the world who might find that useful, I’d be happy to add investigating how to publish it to my “to do” list. |
Andrew McCarthy (3688) 605 posts |
Sounds promising… :-) I followed the links… I couldn’t find anything to install – RISC OS? For Linux, etc? ¯\(^>^)/¯ |
Charles Ferguson (8243) 427 posts |
The tools are for the systems on which the packages run:
These are largely useful for people who use non-RISC OS systems for editing RISC OS files, or (in the case of CodeMirror) are creating a cloud systems for editing RISC OS files (which, in reality, probably means just me… but that’s not the point… it’s available for all). |
Charles Ferguson (8243) 427 posts |
Cool :-) I don’t use VS Code, but I know people who like it; I’m a novelty in liking Sublime at work. I believe that the Monaco editor system is used by VS Code (from my investigation into how godbolt.org worked, as that’s what I was aspiring towards). To continue the pattern, Ben Avison (I believe) introduced the BBC BASIC colouring to Rouge about a year ago (and from the look of the PR it was a somewhat tortuous process). Rouge is used by GitLab, and GitHub, and so the ability to colour BBC BASIC files allows syntax colouring in both those widely used systems. Rouge is a ruby library – see a live rendering, and find all the instructions for using it here: http://rouge.jneen.net/. Installation is, I believe, through the `gem` tool, although my knowledge of ruby is so limited that I think we’ve just exhausted it – I only really know enough to tweak bits of GitLab. |
Andrew McCarthy (3688) 605 posts |
Thank you for the clarification. I’m sure that those working cross-platform will find them useful… :-) |