MuffinScript VS Code Extension
The MuffinScript VS Code Extension adds syntax highlighting support to VS Code for the MuffinScript programming language.
MuffinScript files may look something like this:
// Variable assignment and printing
foo = "hello world"
p(foo)
// Simple arithmetic (add, subtract, multiply, divide, modulo)
p(2 + 2.5)
// Concatenate strings
p(cat("I say ", foo))
// If statements
if (foo == bar) {
p(true)
} else {
p(false)
}
// For loops
for (item in [1, 2, 3]) {
p(item + 1)
}
Installation
Marketplace Installation
- Open VS Code
- Go to the Extensions menu
- Search for "MuffinScript"
- Install
Alternatively, install directly from this link.
Manual Installation
- Open VS Code
- Go to the Extensions menu
- Select 3 dots in the menu bar, select
Install from VSIX
- Select available VSIX file (extension packaged up) or build from source (see Development) below
If you need a screenshot of this, checkout https://stackoverflow.com/a/50232194/6064135
Development
# Install the `vsce` tool
npm install -g @vscode/vsce
# Package the extension
vsce package
# Release the extension (pre-releases must have different versions than GA releases)
vsce publish --pre-release
vsce publish