Akkhara (အက္ခရာ) Language Support
Syntax highlighting, suggestions and a fast typing mode for the Akkhara programming language (.akk files).
- Red / violet / cyan / orange / green / blue token groups
- Literals (
true, false, null, မှန်, မှား, ဗလာ) in bold italic cyan
- Whole-word ("SingleMode") matching for keywords
- Select the Akkhara color theme for the intended look
- Code Suggestion: keywords (Myanmar and English) plus variable, function and class names from the current file
- Special Myanmar typing mode: type a short abbreviation and press space
Special Myanmar typing mode (Caps Lock)
Press Caps Lock while editing a .akk file to turn the mode on; press it again to turn it off.
A status bar item shows the state ($(keyboard) က္ခရာ = off, $(keyboard) က္ခရာ အထူး = on).
The same toggle is available as Akkhara: Toggle Special Myanmar Typing in the Command Palette, and the
status bar item itself is clickable.
VS Code gives extensions no way to read the operating system's Caps Lock state, so the Caps Lock key
itself is bound to the toggle for .akk editors. If your system still flips the real Caps Lock state
and that gets in the way, set akk.specialTyping.capsLockToggle to false and use the status bar item.
With the mode on, type the abbreviation and then space; the space is kept and the abbreviation is
replaced by the keyword.
| Type |
Press |
Get |
လ င |
space |
လုပ်ငန်း |
န လ |
space |
နည်းလမ်း |
ဖ ၏ |
space |
ဖြစ်၏။ |
ပ |
space |
ပြီး။ |
တ ခ စ |
space |
တစ်ခုစီ |
အ က |
space |
အကယ်၍ |
ဖ လ |
space |
ဖြစ်လျှင် |
ဖ ရ |
space |
ဖြစ်ရင် |
မ ဖ လ |
space |
မဖြစ်လျှင် |
မ ဖ ရ |
space |
မဖြစ်ရင် |
ဖ န ရ |
space |
ဖြစ်နေရင် |
မ ဖ န ရ |
space |
မဖြစ်နေရင် |
မ ဟ ရ |
space |
မဟုတ်ရင် |
ဖ န စ |
space |
ဖြစ်နေစဉ် |
မ ဖ န စ |
space |
မဖြစ်နေစဉ် |
သ |
space |
သည် |
န |
space |
နည်းပညာများ |
အ ခ |
space |
အခြား |
အ တ |
space |
အတွက် |
သ မ |
space |
သုံးမည် |
ပ ပ |
space |
ပြပါ။ |
မ ပ |
space |
မေးပါ။ |
ပ သ |
space |
ပုံသေ |
Nothing expands until space is pressed, so a longer abbreviation always wins: သ + space gives
သည်, while သ မ + space gives သုံးမည်.
The mode only rewrites a short run of the bare letters used in the table that starts a token. A run
that continues a word, sits inside a # comment, or appears outside a .akk file is left alone, so
real words such as လုပ်ငန်း, ဖြစ်ရင် or အခု are never changed.