Problems with adding source code in the post.
-
I am writing first post on my blog.
I am using sourcecode command to write codes inside the post.
eg: [sourcecode language= "cpp"]
#include
[/sourcecode]
now check this post that i have been writing goo.gl/wltQs . The space between 2 lines in source code section is very large. What can i do to reduce space between 2 lines in the source code section or is it due to any other error like themes incompatibility etc… Any help would be appreciated.The blog I need help with is: (visible only to logged in users)
-
Could you post the raw link, starting with http, here? There is some error with that link.
-
Thanks for your fast reply..
here is the raw link to the postSieve-of-Eratosthenes, Algorithm to find prime numbers up to an integer.
-
Hmm, thanks. As far as I know there’s nothing you can do about the formatting of sourcecode, and it varies wildly between themes. See my example in this post:
You may want to alert staff to this via your Dashboard Help button once support reopens on January 2nd. Sorry I can’t be more help. Presumably if you were a CSS editor with the upgrade you could do it, but I know nothing about CSS and can’t give you the code.
-
I am using free version..Me too only have little experience with CSS..I think i need to check some other methods to write codes inside post. Anyway thanks for your help
-
This is how i solved problem.
[sourcecode language="cpp"] source code here [/sourcecode]
Thanks for your help raincoaster… :-)
- The topic ‘Problems with adding source code in the post.’ is closed to new replies.