Algo Language Support
Basic syntax highlighting for .algo files (AlgTPy language) in VS Code.
Features
- Highlights program structure (algorithme, début/fin, TDNT/TDO)
- Control flow (si/alors/sinon, tant que, pour, répéter/jusqu’à, selon, cas)
- Procedures/functions and
retourner
- Types (entier, réel/reel, booléen/booleen/bool, caractère/caratere, chaîne/chaine, enregistrement, tableau, fichier)
- Literals (numbers, strings, chars, booleans)
- Operators (assignment
<-, arithmetic, comparisons, logical et/ou/ouex, non, @)
- Line and block comments
Install (local dev)
- Open this folder in VS Code:
extensions/algo-syntax
- Press F5 to launch an Extension Development Host. Open any
.algo file to see highlighting.
Alternatively, you can use the Command Palette:
- "Developer: Install Extension from Location..." and choose this folder
File icons for .algo
This extension also provides a file icon theme that shows a custom icon for .algo files.
Enable it in VS Code:
- Command Palette → "File Icon Theme: Set File Icon Theme"
- Choose "Algo Icons"
You can switch back anytime from the same menu.
Files
package.json – Extension manifest (language + grammar contributions)
language-configuration.json – Brackets, comments, auto-closing pairs
syntaxes/algo.tmLanguage.json – TextMate grammar rules
images/icon.svg – Source vector icon (export to PNG before publishing)
images/file-algo.svg – Icon used by the file icon theme for .algo files
fileicons/algo-icon-theme.json – File icon theme definition
LICENSE – GNU GPLv3 license for the extension
Notes
- This is a minimal, regex-based highlighter and does not parse the language.
- You can refine patterns or add more scopes for better theming.
| |