Changes

Code4Lib Journal WordPress Input Guidelines

24 bytes added, 20:15, 10 April 2019
m
no edit summary
====Code Highlighting====
 
If the code is in a supported language, we can do syntax highlighting.
 
ibiblio has a PHPS extension, so if you an "s" on the end of .php files, it does syntax highlighting for you, e.g.:
<filename>.phps
Code samples entered as preformatted text, as in the following example, are automagically color highlighted in Wordpress by the [http://wordpress.org/extend/plugins/syntaxhighlighter/ SyntaxHighlighter] plugin:
For more subtleties of code formatting, see this gist from editor Péter Király https://gist.github.com/pkiraly/c48193925ad3806c31ef010b58e8600f
 
ibiblio also has a PHPS extension, so if you an "s" on the end of .php files it will display the code rather than try to interpret the page:
<filename>.phps
====Ampersand Issues====
140
edits