So, assuming looking for something that can take a language description plug-in and high light different parts of a programming language. aka google "programming language editor highlighter"
humor note: not all languages in the 9m x 5m poster are supported ( https://web.archive.org/web/20220913143129/https://hopl.info... )
Just a few ideas from google search:
* Commercial :
** jetbrains resharper ( jetbrains.com ) can be used stand alone or with various IDE's.
** visual code studio : https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide
" Non-commerical": ** Pygments has various language sytax files which can be used in various ways (command line, ide plug-in, editor plug-in, etc)
on-line : https://pygments.org/demo/ command line: https://github.com/dedalozzo/pygmentize
*** sublime text, atom, gnu nano, vim text editors also have syntax highter plug-ins/packages.
** https://extensions.libreoffice.org/en/extensions/show/code-highlighter
** https://highlightjs.org/
different code block indicators styles : https://github.com/lukas-reineke/indent-blankline.nvim#with-...
collapse / expand / navigate between code blocks : https://github.com/stevearc/aerial.nvim
not exactly colorize, but can customize to just show iteration / loop processes : https://github.com/ziontee113/syntax-tree-surfer
https://www.spacemacs.org/ with https://github.com/emacs-tree-sitter/elisp-tree-sitter then write a iterator/loop query for language(s) editing per https://tree-sitter.github.io/tree-sitter/syntax-highlightin...
tad less installation heavy (sorta) but also makes use of tree-sitter syntax queries : https://www.lunarvim.org (neovim with treesitter syntax)
blockman usage examples: https://www.youtube.com/channel/UC5539gDeAdWqeXcczWuhnBA
Alternative examples / takes (per user interface):
### embedding a block of source code in a document:
** carrotsearch.gethub.io/apidocs/code-blocks
** https://ckeditor.com/docs/ckeditor5/latest/features/code-blocks.html
### 'colorize blocking' (vs space endenting) : ** example code reference coloring: https://www.youtube.com/watch?v=b0EF0VTs9Dc&list=PLtvX0WpNqnvMQbLB9j4TKbqHMmoLaoOOr
### gui block programming : ** https://mblock.makeblock.com/en-us/
** https://developers.google.com/blockly