Geany's markdown syntax highlighting (without the markdown plugin) is confused, when code block is indented. All the text after code block end is blue and ignores *all following* markdown syntax highlighting . ![md_indented_code_block](https://user-images.githubusercontent.com/1393254/114905882-c0be4c80-9e19-11...)
When code block is *not* indented, everything is ok.
The common mark spec says fences may only be indented three spaces but you have indented it four, looks like it missed the close fence indented four spaces so the fence runs to end of file.
But of course it also depends on the version of markdown the highlighter supports.
The markdown version I use is of pandoc. The indentation is needed in this example for making the code block be a part of list item.
BTW Geany highlighting seems to work correctly only when indentation is 0 or 1 space. When there are 2 or 3 spaces, it causes the same behavior as in case of 4 spaces.
The highlighting in Geany is provided by the lexers in the [Scintilla](https://www.scintilla.org/) project, so you need to report it there to discuss which version(s) of Markdown it supports. If you can, check first how it works in Scite, the reference editor for Scintilla since its version is ahead of Geany, although the release notes suggest not much has changed for the Markdown lexer.
Please put a link to the Scintilla report here.
Apparently, using tilde-delimited code blocks within a list seems to work ok:
![geany-md-code-in-list](https://user-images.githubusercontent.com/1738281/115321945-925aad00-a14a-11...)
Just for the reference, the Scintilla's Markdown lexer: [`geany/scintilla/lexers/LexMarkdown.cxx`](https://github.com/geany/geany/blob/26f4813f0fad0c377c4698e28b0912afac7950a8...)
@nomadbyte remember that everything in the `scintilla` directory is imported from the [Scintilla](https://www.scintilla.org/) project which is a separate project from Geany and is used in many other editors/IDEs. So although its a reference, its not necessarily the latest version of the lexer, and changes need to be made in Scintilla first and against the version there (parenthetical hint, the structure of Scintilla has changed markedly lately, and Geany has not followed as we wait for it to stabilise, so the lexer versions in Geany may be somewhat behind).
Filled scintilla report: https://sourceforge.net/p/scintilla/bugs/2247/
github-comments@lists.geany.org