as some remember, we had a tool before that ripped the code from posts that gave it in proper format instead of the screwed way IE it presents.

well, now I have got 2 new chapters to this story.
as we know, still not everyone uses PostPrep.
what the heck, so many does not still after 10 times of saying still can't post with code-tags.

so, here are they.
1st is a "plugin" for checker.
version independent.
if you know just about something...
well, if you know how to make button on form and make the onclick event, this one will fire with it:
;converts code copied from korg to normal text. 
function bbCodeParserLite()
dim $,$!,$_,$2
$=$m.controls.richtextbox(,$m.width,0,0,0)
$2=$m.controls.textbox(,$m.width,0,0,0)
$.hide
$2.hide
$2.multiline=1
$.paste
$!=split($.text,chr(13))
for $_=1 to ubound($!)
$![$_]=split($![$_],chr(10))
$![$_][0]=""
$![$_]=join($![$_],"")
next
$2.text=join($!,@crlf)
$2.selstart=0
$2.sellength=-1
$2.copy
endfunction


simple explanation of how it works.
you select text on topic and click copy.
then go to checker and fire this udf with the button you needed to create.
after that (yes, immediately) you can open your favorite editor (which most likely is notepad) and vóila, it's there, with correct layout.

then the second one.
it's not even kix so not sure should I post it, but anyways.
you need to save this scriptlet as html on your HD:
<SCRIPT LANGUAGE="JavaScript" defer>
var parentwin = external.menuArguments;
var doc = parentwin.document;
var sel = doc.selection;
var rng = sel.createRange();
var str = new String(rng.text);
var a = str.split('\n');
str = a.join('<br>\n');
var codeparser=open("","CodeParser","toolbar=no,menubar=yes,scrollbars=yes",true);
codeparser.document.write('<html><head><title>CodeParser Lite by Lonkero</title></head><body>');
codeparser.document.write(str);
codeparser.document.write("</body></html>");
<!-- rng.execCommand("Copy")-->
</SCRIPT>

the commented out line will most likely make your browser ask do you want to let my scriptlet destroy your government.
if you don't mind it, you can just remove it and enjoy the clipboard copy.
otherwise you need to copy it from the window script opens.
then, for this script to fire...
write into (yes, you can feel smart by writing different keyname):
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\CodeParser Lite 
(string) default-value=file://C:\\the_path\\thefileyoujustsaved.html
(dword) Contexts = 10


the first will make the menuitem.
second will make it show only when text-selected.
if you leave it out, you might know why I added it there.
so, use just as you wish.

was not gonna post these but wasted about 12 hours of sleeping time, so think I need to.
hope someone will find these usefull.
I bet that at least some requlars will.

[ 30. September 2003, 09:49: Message edited by: Lonkero ]
_________________________
!

download KiXnet