Dan Lowe wrote
Replace with lt;
Replace with gt;
(where those abbreviations stand for less than and greater than)
Before: if x 5:
After: if x lt; 5:
Another common character in code that you should do similarly is
the double quote (). For that, use quot;
Before: if x == foo:
Dan Lowe wrote:
On Nov 22, 2005, at 12:30 AM, could ildg wrote:
Thank you~
It works!
but how can paste and , please?
these 2 symbols will also confuse wordpress and I can't publish
what I want.
Replace with lt;
Replace with gt;
(where those abbreviations stand for less than
If you're using vim [1] as your editor, or even if you have it
installed, you can make use of the 2html.vim script [2] to convert your
python code to HTML complete with syntax highlighting.
In vim, try running:
:run! syntax/2html.vim
If you don't want to run vim as your editor, but just want to
Wordpress.com blog will eat up the spaces before a line,
just as it will trim every line of my article. So I can't paste python code indentedly.
Does any one use wordpress blog here?
Please tell me how to leave the sapces as they are when publishing ariticles on the blog,
Thank you.
--
On Nov 21, 2005, at 8:17 PM, could ildg wrote:
Wordpress.com blog will eat up the spaces before a line,
just as it will trim every line of my article. So I can't paste
python code indentedly.
Does any one use wordpress blog here?
Please tell me how to leave the sapces as they are when
Thank you~It works!but how can paste and , please?these 2 symbols will also confuse wordpress and I can't publish what I want.On 11/22/05,
Dan Lowe [EMAIL PROTECTED] wrote:
On Nov 21, 2005, at 8:17 PM, could ildg wrote: Wordpress.com blog will eat up the spaces before a line, just as it will
On Nov 22, 2005, at 12:30 AM, could ildg wrote:
Thank you~
It works!
but how can paste and , please?
these 2 symbols will also confuse wordpress and I can't publish
what I want.
Replace with lt;
Replace with gt;
(where those abbreviations stand for less than and greater than)
Thank you very much Dan.I settle the problem according to you tips.On 11/22/05, Dan Lowe [EMAIL PROTECTED]
wrote:On Nov 22, 2005, at 12:30 AM, could ildg wrote: Thank you~
It works! but how can paste and , please? these 2 symbols will also confuse wordpress and I can't publish what I