# Define Tiddly Global Macros ## Metadata **Status**:: #x **Zettel**:: #zettel/literature **Created**:: [[2023-05-20]] **Topic**:: [[♯ TiddlyWiki]] ## Synopsis Create a tiddler with the tag `$:/tags/Macro`. Define macros like this. ``` \define .icon(_) <span class="doc-icon">{{$_$}}</span> ``` The macros tiddler must use content type `text/vnd.tiddlywiki`. To show the content of the tiddler, add the following snippet at the end of the file. ``` <pre><$view field="text"/></pre> ``` See [doc-macros](https://tiddlywiki.com/#%24%3A%2Feditions%2Ftw5.com%2Fdoc-macros) in TiddlyWiki doc site.