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.

Advertisements

Leave a comment

Filed under Wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s