ecode editor

Started by bprlhe, July 18, 2024, 21:48:52

Previous topic - Next topic

bprlhe

Built-in SmallBASIC syntax highlighting support (contributed by me). Remember to choose SmallBASIC as default for .bas extension instead of VisualBasic when first opening a .bas file.

https://github.com/SpartanJ/ecode

J7M

Nice work :) I didn't know this editor before. It is lightweight and fast. Beside syntax highlighting you can also configure it to start your program directly from the GUI. I'll add ecode to the article about editors on the SmallBASIC website.

Tinine

Quote from: J7M on July 19, 2024, 20:39:37you can also configure it to start your program directly from the GUI. 
I must totally suck....haven't figured-out how to do this  :D

Tinine

Quote from: bprlhe on July 18, 2024, 21:48:52Built-in SmallBASIC syntax highlighting support (contributed by me). 
Thank you for this 👍

Curious though; I found the languages folder but it was empty...where exactly do I find your syntax highlighting file?

Craig

bprlhe

Here it is:

https://github.com/SpartanJ/eepp/blob/develop/src/eepp/ui/doc/languages/smallbasic.cpp

There are two ways to define a new language. One is in C++, and one is in JSON. The JSON version will take precedent.

To get the JSON from C++, use this command:

ecode --export-lang=smallbasic --export-lang-path=./smallbasic.json

Move smallbasic.json into %USERPROFILE%\ecode\languages. You can make your own customizations in smallbasic.json.

Tinine