#+TITLE: Tags FIXME #+AUTHOR: Seb Vauban #+EMAIL: no-LMehjL4SQ+Y@public.gmane.org #+DATE: 2011-05-13 #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en_US #+STYLE: This page is useless for you. It's only for me, for testing some code. Ce texte est en français. This is in English. * Environments The following are different environments, from the best to the less good... The worse are not even shown ;-) See http://orgmode.org/manual/Literal-examples.html#Literal-examples. ** Src with highlighting #+BEGIN_SRC sh #!/bin/sh #!/bin/sh 123456789 223456789 333456789 444456789 555556789 666666789 777777789 888888889 999999999 000000000 000000000 # script -- What it does # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc tempfile="/tmp/$(basename $0).tmp" # 80 chars exactly ============================================================= trap "/bin/rm -f $tempfile" EXIT HUP INT QUIT TERM function usage() { cat << EOF >&2 Usage: $(basename $0) flags... Where... EOF exit 1 } if [ $# -eq 0 ]; then usage fi #+END_SRC ** Example #+BEGIN_EXAMPLE #!/bin/sh #!/bin/sh 123456789 223456789 333456789 444456789 555556789 666666789 777777789 888888889 999999999 000000000 000000000 # script -- What it does # Exits with zero if no error. Looooooonnnng comment... 0123 4567 8901 2345 6789 0123 abcd efgh ijkl mnop qrst uvwx yz01 2345 6789 0abc tempfile="/tmp/$(basename $0).tmp" # 80 chars exactly ============================================================= trap "/bin/rm -f $tempfile" EXIT HUP INT QUIT TERM function usage() { cat << EOF >&2 Usage: $(basename $0) flags... Where... EOF exit 1 } if [ $# -eq 0 ]; then usage fi #+END_EXAMPLE