Skip to content

Commit

Permalink
Add procedure and function snippet to "stamp button" (#8445)
Browse files Browse the repository at this point in the history
* Add procedure and function snippet to "stamp button"

* remove draft tiddler
  • Loading branch information
pmario authored Jul 29, 2024
1 parent 165c7e9 commit d2302df
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 1 deletion.
7 changes: 7 additions & 0 deletions core/language/en-GB/Snippets/FunctionDefinition.tid
Original file line number Diff line number Diff line change
@@ -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>>
7 changes: 7 additions & 0 deletions core/language/en-GB/Snippets/ProcedureDefinition.tid
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions core/wiki/tags/TextEditorSnippet.tid
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions languages/de-DE/Snippets/FunctionDefinition.tid
Original file line number Diff line number Diff line change
@@ -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>>
2 changes: 1 addition & 1 deletion languages/de-DE/Snippets/MacroDefinition.tid
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ tags: $:/tags/TextEditor/Snippet
caption: Makro Definition

\define makroName(param1:"standard parameter", param2)
Text des Makros. Zugriff auf den <<__param1__>>.
Ihr Text kommt hier her. Zugriff auf <<__param1__>>.
<<__param2__>>
\end
8 changes: 8 additions & 0 deletions languages/de-DE/Snippets/ProcedureDefinition.tid
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d2302df

Please sign in to comment.