Skip to content

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.

Namefeatures
2xko-theme-direction-basicHighlights direction and button. Does not highlight code.
2xko-theme-button-only-basicHighlights button but not direction. Does not highlight code.
2xko-theme-direction-catppuccin-mochaHighlights 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.

Some inline code `{2xko} L M H`.

Some inline code {2xko} L M H

```2xko OptionalConfiguration
some combo: L M H ...
... > S2 Super 1
```
some combo: L M H ...
... > S2 Super 1

Easy combo:

L M H 2H j.M j.H j.S2

Heavy 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


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