Source code formatting
Note
For information on code formatting in the new editor, see Formatting text.
Old editor
-
To highlight a source code snippet, such as a function name, in the text, wrap it in back quotes (
`
). -
To format multiple source code lines, paste three back quotes (
```
) in the row preceding the code block and the row following the code block.
Example:
-
Function `exit()`
See the result
-
Start of a code snippet ``` <? phpinfo(); $s = "Hello, World!\n"; print $s; ``` End of the code snippet
See the result
See also
Was the article helpful?
Previous
Next