Skip to content

Fast-and-Pythonic/microScript-TextMate-syntax-highlighting-for-VSCode

Repository files navigation

This is an extension of SYNTAX highlighting according to the TextMate standard for microScript language, for VS Code. It's syntactic. NOT SEMANTIC.

To install the extension:
  • 1 - Put the “microScript-syntax-highlighting” folder in the “.vscode\extensions” directory.

  • 2 - Enter the command ">Developer: Install Extension from Location...".

  • 3 - Select the folder “microScript-syntax-highlighting".

  • 4 - And after installing the extension, restart VS Code.

My custom code theme, based on "ACE Tomorrow Night Bright". It is specially optimized for microScript syntax.

In the file "ms-color (ACE Tomorrow Night Bright)-like.jsonc" there is a custom analogue of the standard code color theme from microStudio. Just transfer the code from this file to your "settings.json" file. This custom code color theme is better designed to highlight the syntax of microScript than the standard code color themes.

The extension is based on the TextMate standard. Many editors support the TextMate standard. Therefore, this highlight can be ported to other editors.


Added code highlighting for:

  • Comments

  • Keywords:

    • local, global

    • end, return

    • if, elsif, else, then

    • and, or, not

    • while, for, to, by, in, break, continue

    • function, object, class, constructor, extends, super, this, new

    • do, after, every, sleep

  • Mathematical operators:

    = + - * / % ^

    += -= *= /= %=

    == != <= >=

    & | << >>

  • Numbers

  • Booleans

  • Strings

  • In brackets of functions and classes:

    • Named parameters
    • and all the other stuff (comments, keywords, math operators, numbers, booleans, strings)
    • arguments ARE NOT HIGHLIGHTED
  • Variable names ARE NOT HIGHLIGHTED


Screenshots with examples of highlighting microScript code

Снимок экрана 2025-05-08 135415

Снимок экрана 2025-05-08 142932

Снимок экрана 2025-05-08 140005

Снимок экрана 2025-05-08 140033

Снимок экрана 2025-05-08 140057

Снимок экрана 2025-05-08 142649

Снимок экрана 2025-05-08 140713

Снимок экрана 2025-05-08 140735

Снимок экрана 2025-05-08 140754

Снимок экрана 2025-05-08 140844


I plan to add a few more pieces in the future:

  • Add some missing keywords.
  • Highlighting the tools of the microScript standard library - Functions, System Classes, and etc...
  • I'll try to post the extensions on VS Code Marketplace. To make them easier to install.
  • Also, I will most likely make 2 versions of the extension:
    • 1 - My own microScript code highlighting color theme, based on the “Tomorrow Night Bright” theme.
    • 2 - An almost complete analog of the standard “Tomorrow Night Bright” theme from the Ace editor in microStudio.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published