To make the question more accurate: my goal is to keep tiddlers of different formats distinguishable by type type (Markdown, Asciidoc, reStructuredText, LaTeX, etc.), but if that type is unknown to TiddlyWiki, then I can view them as I do in a text editor.
\define hidebody() <style> [data-tiddler-title="$(currentTiddler)$"] .tc-tiddler-body { display:none; } </style>
<$list filter="[<currentTiddler>get[type]addprefix[$:/language/Docs/Types/]!is[shadow]!is[tiddler]]" variable="unknown_type">
<<hidebody>><pre><$text text={{!!text}}/></pre>
</$list>
Forgive my ignorance, but I have rarely if ever seen any syntax highlighting anywhere, in css etc...
we do not have a highlighter for wikitext and widgets.