Posting code, formulas, equations in blog posts
To post code snippets or formulas or equations I was finding the format loose when I save the post. I checked out any way to highlight the code or preserve the program structure to make it readable neat but I found it tough. Then, after a few trial and errors , I got a way for this. You are lucky and would not find it tough my way , if you have your own webspace. I still now had not.
Steps to post the code , program, formulas, equations without losing format structure or readability on free blog spaces is to :-
Step #1: Switch to HTML mode
Step #2: Type the < pre > and < /pre > tags.
Step #3: Copy the code or equation or whatever you would like to preserve format.
Step #4: Open http://www.htmlconvert.net/, select filter tags option and paste the copied. click convert.
Step #5: Copy the converted and paste it between < pre> and </ pre> tags and switch back to visual mode in editor.
Step #6: Now , publish and Hope you have the format preserved.
Let me know your thoughts.
Other good reads at :
http://www.thunderguy.com/semicolon/wordpress/code-markup-wordpress-plugin/
http://en.forums.wordpress.com/topic/problem-embedding-html-code-into-blog
http://wordpress.jdwebdev.com/blog/code-in-posts/
http://codex.wordpress.org/Writing_Code_in_Your_Posts
One Response to “Posting code, formulas, equations in blog posts”
Loading...
Your welcome everyone.
My computer worked not correctly, many mistakes and buggs. Please, help me to fix errors on my PC.
I used Windows XP.
Thanks,
noksshaph
noksshaph - November 9, 2009 at 2:20 pm