Tag Archives: code

How to Write Some Source Code in WordPress

Sometime we need to publish our code for other people. We can use tag “code” in wordpress HTML editor. But, in many way, if our code is too long and should not to be truncated, we need additional tag to accomplish this problem. Then we use tag called “sourcecode language“.

Here for the example (for css language) :

# #button {
# font-weight: bold;
# border: 2px solid #fff;
# } </code>

I get this information from wordpress faq.
The programming language that could be accomodate by this tag such as: cpp, csharp, css, html, java, delphi, jscript, php, python, ruby, sql, vb, xml.
This is implementation of syntaxhighliter by Alex Gorbatchev.


Leave a comment

Filed under Wordpress