ZX81 - Basic README
ZX81 BASIC syntax highlighting for Visual Studio Code.
Supports all reserved words from the ZX81 BASIC range.
Best results when also using a ZX81 font ;-)
Basic
Statements
AT,CLEAR,CLS,CONT,COPY,DIM,FAST,FOR,GOSUB,GOTO,IF,INPUT,
LET,LIST,LLIST,LOAD,LPRINT,NEW,NEXT,PAUSE,PLOT,POKE,PRINT,
RAND,REM,RETURN,RUN,SAVE,SCROLL,SLOW,STEP,STOP,TAB,THEN,TO,
UNPLOT
Functions
ABS,ACS,ASN,ATN,CHR,CODE,COS,EXP,INKEY,INT,LEN,LN,
PEEK,PI,RND,SGN,SIN,SQR,STR,TAN,TLS,USR,VAL
Operators
AND,NOT,OR
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following commnand, and press Enter.
ext install zx81basic
Theme colors
To change the colors to your liking, just edit settings.json
global file and add:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"keyword.control.zx81basic"
],
"settings": {
"foreground": "#79f109",
"fontStyle": "bold"
}
},
{
"scope": [
"entity.name.function.zx81basic",
],
"settings": {
"foreground": "#e98707"
}
},
{
"scope": [
"comment.line.zx81basic",
],
"settings": {
"foreground": "#008000",
}
},
{
"scope": [
"keyword.operator.logical.zx81basic"
],
"settings":{
"foreground": "#8E8E8E",
}
},
{
"scope": [
"variable.name.zx81basic"
],
"settings": {
"foreground": "#32bacc"
}
},
{
"scope": [
"constant.numeric.zx81basic"
],
"settings": {
"foreground": "#ffffff"
}
},
{
"scope": [
"string"
],
"settings": {
"foreground": "#c2995c"
}
}
]
}
Acknowledgments