Difference between revisions of "Wiki Syntax"
Jump to navigation
Jump to search
| Line 15: | Line 15: | ||
user1@blablubb:~/test$ | user1@blablubb:~/test$ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | <syntaxhighlight lang="python"> | ||
| + | import re | ||
| + | import sys | ||
| + | import os | ||
| + | import numpy as np | ||
| + | |||
| + | def main(): | ||
| + | # ======================================================================== | ||
| + | # Initialisation | ||
| + | # ----- Switches -------------------------------------------------------- | ||
| + | debug=False | ||
| + | parse_script=True | ||
| + | generate_gnuplot=False | ||
| + | call_gnuplot=False ## call gnuplot automatically generates gnuplot | ||
| + | only_gnuplot = False | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
Revision as of 08:21, 22 August 2017
Zum erstellen von Code Segmenten mit Syntax Highlighting:
user1@blablubb:~/test$ ls datei*
datei datei1 datei2 datei3 datei4 datei5 datei6 # Auch 'datei' ohne Nummer
user1@blablubb:~/test$ ls datei?
datei1 datei2 datei3 datei4 datei5 datei6
user1@blablubb:~/test$ ls datei[1-3] # Wertebereich
datei1 datei2 datei3
user1@blablubb:~/test$ ls datei[135] # Wertemenge
datei1 datei3 datei5
user1@blablubb:~/test$ touch test{1..5} # Wertebereich für Klammernexpansion
user1@blablubb:~/test$ ls test*
test1 test2 test3 test4 test5
user1@blablubb:~/test$
import re
import sys
import os
import numpy as np
def main():
# ========================================================================
# Initialisation
# ----- Switches --------------------------------------------------------
debug=False
parse_script=True
generate_gnuplot=False
call_gnuplot=False ## call gnuplot automatically generates gnuplot
only_gnuplot = False
Latex Formeln: