1 #+TITLE: ELBB - Example of page with code
2 #+STARTUP: odd hidestars unfold
3 #+AUTHOR: Emacs Community
4 #+EMAIL: bzg AT gnu DOT org
6 #+OPTIONS: skip:nil toc:nil
8 * Fixed-width sections of code
10 : (substring "abcdefg" 0 3)
12 : (substring "abcdefg" -3 -1)
18 (substring "abcdefg" 0 3)
20 (substring "abcdefg" -3 -1)
26 #+BEGIN_SRC emacs-lisp
29 (let ((s (if (symbolp str)(symbol-name str) str)))
32 (not (null (string-match "^\\( \\|\f\\|\t\\|\n\\)" s)))
33 (> (length s) (string-match "^\\( \\|\f\\|\t\\|\n\\)" s)))
34 (setq s (replace-match "" t nil s)))
36 (not (null (string-match "\\( \\|\f\\|\t\\|\n\\)$" s)))
37 (> (length s) (string-match "\\( \\|\f\\|\t\\|\n\\)$" s)))
38 (setq s (replace-match "" t nil s))))
43 Read more on [[http://orgmode.org/manual/Literal-examples.html][Org's manual]].