Exactly how do I use the sourcecode shortcode?
-
I can’t get the sourcecode shortcode to work. In the following, taken from the Code panel of a test post, the “sourcecode” section comes up as plain text (wrong), the “kyte.tv” section embeds the video (right), and the “code” section looks right. I got LaTeX embedding to work. What am I doing wrong here? Could you provide me with something to cut and paste into my Code panel that will format code the way it was introduced?
[sourcecode language=’css’] #button { font-weight: bold; border: 2px solid #fff; } [/sourcecode] [kyte.tv 6118] <code> #button { font-weight: bold; border: 2px solid #fff; } </code> -
I got it to work with James’ csharp example in this thread, but I don’t know what the difference is.
https://en.forums.wordpress.com/topic.php?id=15241&page&replies=35
-
-
-
-
-
I had similar problem. It seems to be a cut-and-paste problem. Don’t copy the example, enter the quotes yourself: ‘css’ or “css” otherwise the wrong quote is used. See: https://en.forums.wordpress.com/topic.php?id=15761&page&replies=2#post-116095
- The topic ‘Exactly how do I use the sourcecode shortcode?’ is closed to new replies.