Print Syntax Highlights to html?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
bevhoward
Posts: 27
Joined: Tue Oct 05, 2004 6:38 pm
Location: Austin, Texas, USA
Contact:

Print Syntax Highlights to html?

Post 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
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Select some syntax-formatted text, right-click, select "Copy Other ..." and then "As an HTML page"
User avatar
bevhoward
Posts: 27
Joined: Tue Oct 05, 2004 6:38 pm
Location: Austin, Texas, USA
Contact:

Post 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
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post 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.
Hope this was helpful.............good luck,
Bob
User avatar
bevhoward
Posts: 27
Joined: Tue Oct 05, 2004 6:38 pm
Location: Austin, Texas, USA
Contact:

Post by bevhoward »

>> Hope this was helpful <<

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

Thanks again,
Beverly Howard
Post Reply