[sourcecode] and
-
I posted following code in HTML mode:
[sourcecode language="cpp"]
template <int n>
struct MaleSequence
{
// взаємний рекурсивний виклик
enum { value = n - FemaleSequence<MaleSequence<n - 1>
::value>::value };
};
[/sourcecode]
switch to Visual mode, and back to HTML mode, and save it. Result is:
[sourcecode language="cpp"]
template
struct MaleSequence
{
// взаємний рекурсивний виклик
enum { value = n - FemaleSequence
::value>::value };
};
[/sourcecode]The blog I need help with is: (visible only to logged in users)
-
Have you tried putting the original text in the visual editor? I don’t know why it should change if you put it in the html editor, switch to visual, then switch back (doesn’t seem like it should), but using the shortcode doesn’t require you to be in html mode. It’s odd that it changes like that, although since I don’t know the code, it could be that there’s something malconstructed in the internal syntax & wp.com is stripping out the part that is surrounded by the “bad” syntax — are all of your “>” characters correctly nested however they should be in cpp?
-
See here please for accepted codes and posting source code.
http://en.support.wordpress.com/code/#html-tags
http://en.support.wordphttp://en.support.wordpress.com/code/#html-tags -
@harmyder, if something is getting stripped out, then I think you need to contact staff directly. Go to http://en.support.wordpress.com/contact/ and search for anything. Then scroll to the bottom, click the no button and the contact form will appear.
-
Here’s the link for using shortcode to post source code: http://en.support.wordpress.com/code/posting-source-code/
- The topic ‘[sourcecode] and’ is closed to new replies.