Changes

Jump to: navigation, search

Code4Lib Journal WordPress Input Guidelines

140 bytes removed, 16:17, 4 February 2015
updating this page to remove duplication from style guide.
it does syntax highlighting for you.
We're still deciding if we like Code samples entered as preformatted text, as in the syntax highlightingfollowing example, don't feel compelled to make it work if it's not working for you (but please let other editors know what your experience is). Around your code, include are automagically color highlighted in Wordpress by the [sourcecode language='langcode']http://wordpress...[org/extend/plugins/syntaxhighlighter/sourcecodeSyntaxHighlighter]plugin:
Replace <codepre>langcode<[sourcecode language='php']RAW HTML/PHP/XML/Etc. code> with the appropriate code from the following list (if more than one option for a language, any one will work). If the goes here; change language parameter is not set, it will default to "text" (no syntax highlightingin above line). For a full list consult: http:as needed[/sourcecode]</en.support.wordpress.com/code/posting-source-code/pre>
If the language parameter is not set, it will default to "text" (no syntax highlighting). Supported languages include <tt>cpp, c, c++, c#, c-sharp, csharp, css, delphi, java, js, jscript, javascript, pascal, php, py, python, rb, ruby, rails, ror, sql, vb, vb.net, xml, html, xhtml, and xslt</tt>. Pretty much everything except <tt>perl</tt>. For a full list consult: http://en.support.wordpress.com/code/posting-source-code/
{|!Language!!Code|-|C++||cpp, c, c++|-|C#||c#, c-sharp, csharp|-|CSS||css|-|Delphi||delphi, pascal|-|Java||java|-|JavaScript||js, jscript, javascript|-|PHP||php|-|Python||py, python|-|Ruby||rb, ruby, rails, ror|-|SQL||sql|-|Text||text (e.g. .conf file)|-|VB||vb, vb.net|-|XMLNote: do not surround code with <tt>&lt;pre&gt;</HTML||xmltt> tags, html, xhtml, xslt|} Example: as the <tt>[sourcecode language='css'] body { font-size: 0</tt> tag itself will generate the necessary HTML.625em; background-color: #0000ff; color: #ffff00; } [/sourcecode]
====Ampersand Issues====
140
edits

Navigation menu