1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Add procedure and function snippet to "stamp button" (#8445)

* Add procedure and function snippet to "stamp button"

* remove draft tiddler
This commit is contained in:
Mario Pietsch 2024-07-29 13:38:07 +02:00 committed by GitHub
parent 165c7e9825
commit d2302df197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,7 @@
title: $:/language/Snippets/FunctionDefinition
tags: $:/tags/TextEditor/Snippet
caption: Function definition
\function f.name(param1,param2:"default value") [<param1>!is[blank]else<param2>]
<<f.name>>

View File

@ -0,0 +1,7 @@
title: $:/language/Snippets/ProcedureDefinition
tags: $:/tags/TextEditor/Snippet
caption: Procedure definition
\procedure procName(param1:"default value",param2)
Your text comes here.
\end

View File

@ -0,0 +1,2 @@
title: $:/tags/TextEditor/Snippet
list: $:/language/Snippets/ProcedureDefinition $:/language/Snippets/FunctionDefinition $:/language/Snippets/ListByTag $:/language/Snippets/Table4x3 $:/language/Snippets/TableOfContents $:/language/Snippets/MacroDefinition

View File

@ -0,0 +1,7 @@
title: $:/language/Snippets/FunctionDefinition
tags: $:/tags/TextEditor/Snippet
caption: Function Definition
\function f.name(param1,param2:"default value") [<param1>!is[blank]else<param2>]
<<f.name>>

View File

@ -3,6 +3,6 @@ tags: $:/tags/TextEditor/Snippet
caption: Makro Definition caption: Makro Definition
\define makroName(param1:"standard parameter", param2) \define makroName(param1:"standard parameter", param2)
Text des Makros. Zugriff auf den <<__param1__>>. Ihr Text kommt hier her. Zugriff auf <<__param1__>>.
<<__param2__>> <<__param2__>>
\end \end

View File

@ -0,0 +1,8 @@
title: $:/language/Snippets/ProcedureDefinition
tags: $:/tags/TextEditor/Snippet
caption: Procedure Definition
\procedure procName(param1:"standard parameter", param2)
Ihr Text kommt hier her. Zugriff auf <<__param1__>>.
<<__param2__>>
\end