.py to HTML: indentation problems

Neil Hodgson neilh at scintilla.org
Sun Apr 15 23:45:13 EDT 2001


Ron Stephens:
> A stupid little problem, irritating nonetheless. I have polished my
> program and now am attempting to load it on my website as an HTML file.
> Using Netscape Composer, I cut the code from pythonWin, paste it into
> Netscape Composer, and then upload the HTML file from Composer to my
> website.
>
> Problem is that the lines sometimes wrap in a wierd way that destroys
> the indentation of the code.

   There are several programs for converting Python code to HTML. My SciTE
editor http://www.scintilla.org/SciTE.html has an Export as HTML command.
The generated HTML does not wrap in the browsers I have checked with.

   Neil





More information about the Python-list mailing list