There is a PR on GitHub and discussion here to add field code-body
(set to yes) for some templates (e.g UI template for view/edit). I think we need to do this for all elements creating UI, macros, procedures, widgets, JS, etc.
@pmario started doing this for templates here fix #7579 PageTemplate/story can brick wiki by pmario · Pull Request #7583 · Jermolene/TiddlyWiki5 (github.com) and forunately the PR has been merged.
For readability, recursion in some cases, having cleaner/simpler to follow elements, I would like to suggest we need to do this for:
-
tiddlers contains macros/procedures which normally tagged with
$:/tags/Macro
and$:/tags/Global
- a good programming style is to store only macros/procedures/functions in such tiddlers
- this way the code is visible when you open a tiddler tagged with
$:/tags/Macro
or$:/tags/Global
in story river
-
JavaScript modules
-
Mixed stylesheet tiddlers have not tagged with
$:/tags/Stylesheet
- The good news is stylesheet tiddlers tagged with
$:/tags/Stylesheet
now are shown as code and you do not see ugly core stylesheets specially those use datauri, or have mixed of wikitext/css.
- The good news is stylesheet tiddlers tagged with
please give your suggestions …