xhtml v1.2 — File Browser
xhtmlv1.2v1.2 / xhtmlv1.2v1.2 / xhtml read me.txt
xhtml read me.txt — 2 KB — Download this file
Installation: Drop the script into your mIRC script dir (or mIRC dir) Then type (in any window in mIRC): /load -rs path\xhtml.mrc ------------------------------------------------------------------------ Proper Use: This scripts main function is to export the active window to a file. ------------------------------------------------------------------------ Commands: /xhtml /xhtml <c:\filename.html> - Optional parameters, saves to a path\location\filename.ext - if no parameters are input, it will create the file in the scriptdir. /ehtml <text with optional color/bold/underline/reverse codes> - This will echo the line in HTML form to your active window. Functions: $html(<any line here>) - Can use this in your own script, with /echo or /write $hexcolor(<color # here>) - Will return the hex color-code for mIRC colors $hexcolor(10) ------------------------------------------------------------------------ Version Notes: v1.2 * Added support for font size. * Added support for font color backgrounds. * Added support for reverse codes (ctrl+r). * Changed /write to /fwrite for quicker writing. * Changed the way it saves the file, now using $qt to add quotes, also removing invalid characters: (#,\,/,:,*,?,",<,>,|) * Changed the location of the default file save. Now goes to scriptdir. * Fixed a few regex bugs. * Fixed some variables that were not unsetting. v1.1 * Fixed a bug where <font> and </font> would be left in the text. * Attempt to slim down excess <b></b><u></u><font *></font> (in case someone does ) v1.0 * Created $html, $hexcolor, /ehtml, /xhtml (over a few nights of work) ------------------------------------------------------------------------ Thinking ahead: Once I learn a bit of CSS, I may rewrite some of this, make the output code smaller. Might add a small dialog for a few select options, such as allowing a user to change the "auto save" location (when using /xhtml without any parameters)