Hugo Syntax Highlighting for Org
Code are stolen from ruippeixotog/quicksort
Inline
=hl_lines=
~hl_lines~
- hugo exports this type of inline code block into actual code block :(
1
src_org{third}
Src Block
Maybe hugo doesn't support hl_lines
property to highlight certain lines in a src block in org.
However, you can use hugo shortcodes
to achieve this.
Example
Traditionally adding property
|
|
Using shortcode
usage: (Note the /*
and */
notations are to prevent itselves being interpreted by hugo.)
|
|
If you want to also highlight the src block in org mode, you can put #+BEGIN_SRC
and #+END_SRC
inside the shortcode. (However, the fences will be inside the code block)
example: (Note two comma at the beginning of fences are to distinguish itself from the its parent src block.)
|
|
|
|