Hello Since a few days Alexander S. Kunz and me exchanging mails about file txt2html.regexps and undocumented feature in The Bat!. Three days ago Alexander sent an info and this file to the TBOT. <http://tech.groups.yahoo.com/group/tbot/message/65065> My English is poor, so I simple copy&paste heart of the matter:
When you're using the rich text viewer, TB uses an optional file "txt2html.regexps" (in TB's program dir) that contains parsing information in the form of regular expressions. This can be used to do render the text on-screen differently. And it can be used to render *bold* and /italics/ and _underlined_ just like that. (BTW, to take advantage of this feature You must enable the "smileys" too - and if You don't like them, delete the directory Images\Default and the file Images\default.msl). He sent this file to TBOT little to fast, I was still adding some corrections (ascii-arts bug, html-messages rendering). So please upgrade, if You use file from TBOT. As far as I remember we cannot send files to this list, so I must paste content of this file: (\<STYLE type.\"text\/css\"\>)=\1 span.onpx{font-size:1px;color:white} (?i)((?<![a-z\d\<\:])\*(?![\s\*]|[\_\/]\s)(.*?[a-z\d].*?)(?<![\<\:\*\s])\*(?![a-z\d\"\>]))=<span class="onpx">*</span><b>\2</b><span class="onpx">*</span> (?i)((?<![a-z\d\<\:])\_(?![\s\_]|[\*\_]\s)(.*?[a-z\d].*?)(?<![\<\:\_\s])\_(?![a-z\d\"\>]))=<span class="onpx">_</span><u>\2</u><span class="onpx">_</span> (?i)((?<![a-z\d\<\:\/])\/(?![\s\/]|[\*\/]\s).*?[a-z\d].*?(?<![\<\:\/\s])\/(?![a-z\d\"\>]))=<i>\1</i> Copy this four lines to the text file called "txt2html.regexps" (not "txt2html.regexps.txt"!), place that file in main TB's! directory, turn on smileys and admire. In the first line are words "color:white" - this must be Your background's colour (Options / Preferences / "HTML/Windows editor" / Item - Background), for example my colour is "color:#A7B3B4". "White" is most common. If You have comments or ideas, and especially when You find any bug, please give me an info. BTW the whole idea was discovered by Atlantoff, information was spread by Stanislav V. Mikov, who wrote small program HLAM (Highlight Manager), to help in using this feature (it's unnecessary). Personally, I'd familiarize with this possibility thanks to lazik_s and the polish discussion list thebat-l. -- Regards Konrad Szkudlarczyk ---------------------------------------------------------------------- Dziewczyny Paryza >>> http://link.interia.pl/f19a3 ________________________________________________ Current version is 3.85.03 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html