SPH_SETTINGS
SPH_SETTINGSBack to Snip <-- Previous Change | Next Change -->
| Diff Summary | |||||
|---|---|---|---|---|---|
| Title | |||||
| Date | 2007-07-31 21:40:06 | 2007-07-31 21:41:22 | |||
| Editor | Herbert Poul | Herbert Poul | |||
| Tags | |||||
| 2007-07-31 21:40:06 by Herbert Poul | 2007-07-31 21:41:22 by Herbert Poul | ||||
|---|---|---|---|---|---|
| 51 | ## board_custom_markup | 51 | ## board_custom_markup | ||
| 52 | 52 | ||||
| 53 | This option works together with board_markup_enabl | 53 | This option works together with board_markup_enabl | ||
| > | ed and can be used to add | > | ed and can be used to add | ||
| 54 | custom functions which can be used as markup. | 54 | custom functions which can be used as markup. | ||
| 55 | 55 | ||||
| t | 56 | For example let's assume we want to create a simpl | t | 56 | For example let's assume we want to create a simpl |
| > | e markup function which only wraps the output into | > | e markup function which only wraps the output into | ||
| > | a <pre> </pre> tag. | > | a html "pre" tag. | ||
| 57 | 57 | ||||
| 58 | We start by creating a function somewhere in the p | 58 | We start by creating a function somewhere in the p | ||
| > | ython path. In my example it's in sphene/custom_ma | > | ython path. In my example it's in sphene/custom_ma | ||
| > | rkup.py | > | rkup.py | ||
| 59 | 59 | ||||
| 60 | def simplemarkup(body): | 60 | def simplemarkup(body): | ||
| 61 | return "<pre>%s</pre>" % body | 61 | return "<pre>%s</pre>" % body | ||
Powered by Sphene Community Tools
