Syntax Highlighting
I am using the Shiki Plugin to modify obsidians markdown syntax highlighting to detect numpad notation.
Install the Shiki plugin on obsidian
Create a \Languages folder and point to it in Shiki.
Create a \Themes folder and point to it in Shiki.
Choose theme based on preferences in the themes dropdown.
| Name | features |
|---|---|
| 2xko-theme-direction-basic | Highlights direction and button. Does not highlight code. |
| 2xko-theme-button-only-basic | Highlights button but not direction. Does not highlight code. |
| 2xko-theme-direction-catppuccin-mocha | Highlights direction, button, and code. Uses catppuccin as a base for code syntax highlighting. |
Specify ‘2xko’ as the language name within a code block to highlight 2xko buttons in.
Inline Highlighting
Section titled “Inline Highlighting”Some inline code `{2xko} L M H`.
Some inline code {2xko} L M H
Code Block
Section titled “Code Block”```2xko OptionalConfigurationsome combo: L M H ...
... > S2 Super 1
```some combo: L M H ...
... > S2 Super 1Examples
Section titled “Examples”Easy combo:
L M H 2H j.M j.H j.S2Heavy buttons: {2xko} 5H H 2H [H]
Button Check: {2xko} L 2L M 2M H 2H S1 2S1 S2 2S2 T 2T
basic bnb: {2xko} L M H 2H > j.M j.H j.S2
Ekko Tag Launcher: {2xko} Opener > Super 1 > 2H (Timewinder) > S1 > 2S2 > 2[H] > 9 jc > j.[H] > dl.j.S1 > r.S2 > H > 2T > Assist Character Combo
supers: {2xko} Super 1 Super 2 Ultimate aka LVL 3, Level 3, or Super 3
Resources
Section titled “Resources”Shiki Obsidian Plugin https://github.com/mProjectsCode/obsidian-shiki-plugin?tab=readme-ov-file
TextMate Language Grammars Manual https://macromates.com/manual/en/language_grammars
Example tmLanguage.json https://github.com/frizLabz-FFriZz/Pine-Script-v5-VS-Code/blob/main/themes/pine.tmLanguage.json
TextMate Grammars and Themes Collection https://github.com/shikijs/textmate-grammars-themes/tree/main