Comments on: Code Format Helper for WordPress (Java Program) http://www.movingtofreedom.org/2007/11/04/code-format-helper-for-wordpress-java-program/ free software, free culture, free association Sun, 27 Jul 2008 01:51:15 +0000 http://wordpress.org/?v=2.0.11 by: Scott Carpenter http://www.movingtofreedom.org/2007/11/04/code-format-helper-for-wordpress-java-program/#comment-3489 Wed, 05 Mar 2008 17:54:47 +0000 http://www.movingtofreedom.org/2007/11/04/code-format-helper-for-wordpress-java-program/#comment-3489 <p>Thanks, Rajesh.</p> <p>I'd handle the font in your CSS. For example, I usually put code in a <b>pre</b> block like so:</p> <pre> <pre class="code"> source code goes here </pre> </pre> And set the style for the <b>pre</b> tag and <b>.code</b> class as: <pre class="code"> pre { overflow: auto; border: 1px solid #afafaf; padding: 3px; margin: 3px; font-size: 1.05em; } .code { background-color: #eaf9ee; color: black; } </pre> <p>You can style the <b>code</b> tag also, of course.</p> <p>I use:</p> <pre class="code"> code { background-color: #eaf9ee; color: black; font-size: 1.1em; } </pre> <p>So that inline code looks <code>like this</code>.</p> Thanks, Rajesh.

I’d handle the font in your CSS. For example, I usually put code in a pre block like so:

<pre class="code">
source
code
goes
here
</pre>

And set the style for the pre tag and .code class as:

pre {
	overflow: auto;
	border: 1px solid #afafaf;
	padding: 3px;
	margin: 3px;
	font-size: 1.05em;
	}

.code {
	background-color: #eaf9ee;
	color: black;
	}

You can style the code tag also, of course.

I use:

code {
	background-color: #eaf9ee;
	color: black;
	font-size: 1.1em;
	}

So that inline code looks like this.

]]>
by: rajesh http://www.movingtofreedom.org/2007/11/04/code-format-helper-for-wordpress-java-program/#comment-3488 Wed, 05 Mar 2008 15:03:01 +0000 http://www.movingtofreedom.org/2007/11/04/code-format-helper-for-wordpress-java-program/#comment-3488 Hi, wp-code-helper.jar is really a good help for me while writing code to my blog. I would like to know that is there any way so that I can get a larger font,as currently when I paste the converted code to my wordpress blog's CODE part, after publishing it looks to small. so could you suggest me anything wrt to coding or editing your source code. Regards, Rajesh. rajesh4it@gmail.com Hi,
wp-code-helper.jar is really a good help for me while writing code to my blog.
I would like to know that is there any way so that I can get a larger font,as currently when I paste the converted code to my wordpress blog’s CODE part, after publishing it looks to small.
so could you suggest me anything wrt to coding or editing your source code.

Regards,
Rajesh.
rajesh4it@gmail.com

]]>