Page 1 of 1

Print Syntax Highlights to html?

Posted: Tue Dec 29, 2009 10:22 pm
by bevhoward
I have the need to post a significant amount of code, preferably with syntax highlighting.

I have determined that it _is_ possible to print from TextPad 4.5 in color to a pdf output such as cutepdf which produces exactly what I need visually, but I need the code in html or other editable file such as doc or rtf. Converting from pdf to any other format looses all code layout formatting.

Does anyone know of other ways to do this or a printer output to html that preserves both text colors and attributes as well as text formatting?

Thanks in advance,
Beverly Howard

Posted: Tue Dec 29, 2009 11:53 pm
by MudGuard
Select some syntax-formatted text, right-click, select "Copy Other ..." and then "As an HTML page"

Posted: Thu Dec 31, 2009 11:44 pm
by bevhoward
>> "Copy Other ..." and then "As an HTML page" <<

Must be a feature of 5.x as I don't have that option and I am not quite ready to upgrade at this point.

Many Thanks,
Beverly Howard

Posted: Fri Jan 01, 2010 4:54 am
by Bob Hansen
I am using 4.73 and the feature is available in that version.

Edit / Copy Other / As a HTML page is right there.

But it will be greyed out if no text is selected. So, just do CTL-A to Select All, then use the Copy Other ... function. You could create a macro to do that, and assign a Hot Key to the macro so that you could do this with one keystroke.

Posted: Fri Jan 01, 2010 3:13 pm
by bevhoward
>> Hope this was helpful <<

absolutely... will see if that version is still available for download and test.

Thanks again,
Beverly Howard