HP Forums
SysRPL/assembly syntax high lighting in VSCode - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: SysRPL/assembly syntax high lighting in VSCode (/thread-18671.html)



SysRPL/assembly syntax high lighting in VSCode - dlidstrom - 08-16-2022 09:04 AM

Hi!

Here's a package for VSCode that can be used to provide syntax highlighting for SysRPL and assembly (SASM format):

https://gist.github.com/dlidstrom/2d16f2881ab9c0cfd571cb77b145f80e

It is a proof of concept and can certainly be more polished, but at least it works and is already usable. To use it, create these folders:

%USERPROFILE%\.vscode\extensions\rpl
%USERPROFILE%\.vscode\extensions\rpl\Syntaxes

Now put the rpl.plist in the Syntaxes folder and package.json in the top folder. Restart VSCode. It should now recognize .a, .s, .srpl, and .rpl as SysRPL files.

If you want to improve on this or do it from scratch, I recommend using Iro: https://eeyo.io/iro/

Here's a screenshot of how it will look (from the wonderfully documented Diamonds source, by Doug Cannon):

[Image: rpl.png]