Laurin Sorgend38 downloadsAdds ABAP syntax highlighting to fenced abap code blocks in Reading view and while editing.
Adds ABAP syntax highlighting to ```abap fenced code blocks in Obsidian, both in Reading view and while editing (Live Preview / Source mode).
'...', `...`, |...| string templates), comments (* line comments and inline " comments), pragmas (##...), numbers, and operators.```abap
REPORT zz_test_report.
DATA: lv_name TYPE string.
IF lv_name IS INITIAL.
lv_name = |Hello { sy-uname }|. " inline comment
ENDIF.
```
Once available in Obsidian's Community Plugins directory: open Settings → Community plugins → Browse, search for "ABAP Syntax Highlight", and select Install, then Enable.
main.js, manifest.json, and styles.css from the latest release.<YourVault>/.obsidian/plugins/abap-syntax-highlight/.npm install
npm run dev # watch mode
npm run build # type-check + production build
npm run lint # eslint
Source lives in src/:
abap-tokenizer.ts — the shared ABAP token rules used by both rendering paths.abap-reading-view.ts — renders highlighted ```abap blocks in Reading view via registerMarkdownCodeBlockProcessor.abap-live-preview.ts — a CodeMirror 6 extension that highlights ```abap blocks in the editor.main.ts — plugin entry point, wires the two above.