Skip to content

Add syntax highlighting for OrgMode file

Gary Wang requested to merge garywang/syntax-highlighting:orgmode into master

Related: https://bugs.kde.org/show_bug.cgi?id=445649

My homebrew syntax highlighting XML file for OrgMode. Submitted as suggested on the bug tracker.

Currently, this syntax XML file only covers some very basic usage of OrgMode format, and I'm still learning how the syntax highlighting engine works, so I guess I should mark it as a WIP. Any help is appreciated.

Currently supported:

  • Basic text emphasis
    • *bold*
    • /italic/
    • _underline_
    • +strike-through+
    • ~code~
  • Basic title/heading
    • Heading
    • TODO/DONE state and complete status (e.g. [1/4]/[25%]) highlight in heading
  • Basic bullet list
    • bullet list with checkbox
    • number list with checkbox
  • Basic block (#+BEGIN: NAME PARAMETERS#+END: / #+BEGIN_NAME PARAMETERS#+END_NAME)

Missing features I planned to add later™:

  • Text folding by the level of title/headline
  • Text emphasis inside bullet list
  • Metadata
    • Single line #+KEY / # blah
    • Quote/code/etc block
Edited by Gary Wang

Merge request reports