I have written an app, basically it searches txt files, finds hits, and displays them on screen. This has all been done so far in Tk, is very fast, and the people that I wrote it for like it.
The problem is that it's just txt, unable to do bold characters or different color characters etc. I have been asked to modify it to allow linkage, italics, bolding etc. I have searching and searching trying to find a solution for this. Ideally I want to be able to display, within a Tk window (or if I have to rewrite to Win32::Gui I will), RTF or HTML documents.
I don't want to write my own parser to display different colors (ala "richedit" example with Win32::GUI) for 2 reasons. First, I'd have to write it (laziness ;-)) and secondly - more important - I'd have to teach the people who are creating the document how to write the text files properly.
This is probably a prime canditate for web-based vs client based, but most people currently like the fact that it's in a seperate application.
Any ideas/help/pointers to a module would be greatly appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.