')
l("
")
x = x.replace(/\ 64){ // zeilenumbruch
if (x.substr(i,2) == crlf){ // zeilenumbruch
Nr++
n = " " + Nr + " "
if (REMARK == true){
REMARK = false
cMk(0)
y += ""
}
l(n.substring(n.length-4) + y + "")
//l(" " + escape(y)) // to show hidden stuff
if (n < 9) alert("printing..\n"+y)
y = ""
IO = 0
if (x.substr(i,2) == crlf){
i++
continue
}
}
if (INSCRIPT == false){
if (x.substr(i,4) == "<"){
cMk(1)
if (x.substr(i,10) == "<script"){
INSCRIPT = true
cL += ""
}
else if (x.substr(i,9) == "<table") cMk(1)
else if (x.substr(i,10) == "</table") cMk(-1)
}
else if (x.charAt(i) == ">") cMk(-1)
} else { // INSCRIPT == true
if (x.charAt(i) == "{") cMk(1)
else if (x.charAt(i) == "}") cMk(-1)
else if (x.charAt(i) == "(") cMk(1)
else if (x.charAt(i) == ")") cMk(-1)
else if (x.substr(i,2) == "//"){
REMARK = true
cMk(0)
cL += ""
}
else if (x.substr(i,11) == "</script"){
INSCRIPT = false
cMk(0)
cL = "" + cL
}
}
y += cL + x.charAt(i) + cR
IO++
cL = ""
cR = ""
}
l(" ** Zeilen: " + Nr + " ** Zeichen: " + Sz + "/"+ x.length+"
")
}
function testSrc(){
parent.frames[0].document.open()
for (i=0; i<=Sz; i++){
if (x.substr(i,2) == crlf){
Nr++
l(y)
y = ""
i = i + 1
}
else y += x.charAt(i)
}
l("")
}
function showText(){
parent.frames[0].document.open()
l("")
for (i=0; i<=Sz; i++){
if (x.substring(i,(i+2)) == crlf){
Nr++
l("
"+y)
y = ""
i = i + 1
}
else y = y + x.substring(i,(i+1))
}
}
function showText2(){
//alert(parent.frames[0].document.FM[0].value.length)
HD = prompt("Überschrift",HD)
MK = prompt("Markieren",MK)
MR = "" + MK + ""
parent.frames[0].document.open()
if (HD != null && HD != "" ){
l(" " + HD + "
")
q("
")
}
l("")
hl=" ....:....1....:....2....:....3....:....4....:....5"+
"....:....6....:....7....:....8....:....9" // headline (skala)
tp="Tab .....\t:........\t:........\t:........\t:........\t:"+
"........\t:........\t:........\t:........\t:........\t:" // tabpositionen
l(tp)
l(hl)
for (i=0; i<=Sz; i++){
if (x.substring(i,(i+2)) == crlf){
Nr++
nrx = " " + Nr // nrx = Nr rechtsbündig
nrx = nrx.substr(nrx.length-3)
if (MK.length > 0){
yy = y.split(MK)
if (yy.length > 1){
y = yy.join(MR)
nrx = "" + nrx + ""
}
}
l("
"+nrx+" "+y+" ")
y = ""
i = i + 1
}
else if (x.charAt(i) == "<") y += "<"
else if (x.charAt(i) == "&") y += "&"
else if (x.charAt(i) == tab) y += ""+x.charAt(i)+""
else if (x.charAt(i) == " ") y += "."
else if (x.charAt(i) < " ") y += ""+x.charAt(i)+""
else y += x.charAt(i)
}
l(hl)
l(tp)
l("
")
l("Anzahl Bytes: ")
l("Anzahl Bytes mit Ctrl: ")
l("TabSpaces: Zeilenumbrüche: | ")
l((x.length - Nr * 2)+" "+x.length+" ")
l(" ")
l(" ")
l(" |
")
l("")
}
function t(x) {parent.frames[1].document.writeln(x)}
function getTools(){
parent.frames[1].location.href = "numclpbd4.htm"
}
function Help(){
alert("Dieses Tool dient zur Aufbereitung und Ausgabe von Texten aus Webpages\n" +
"bzw von Sourcecode, z.B. Javascript.\n" +
"Vorgehensweise:\n" +
"- Der auszugebende Text befindet sich in der Zwischenablage\n" +
"- Sie fügen die Zwischenablage ein, z.B. mit Strg V\n" +
"- 'Show Src' gibt Sourcecode numeriert als Text aus\n" +
"- 'Test Src' gibt Sourcecode als HTML aus, d.h. testet ihn\n" +
"- 'Show Text' gibt Webtext (z.B. eine zu druckende Teilmenge) aus")
parent.frames[0].document.FM[0].focus()
alert(parent.frames[1].scrolling)
}
function selIt(){
li = document.FM.SEL.selectedIndex
if (li==1) Help()
else if (li==2) parent.frames[4].openToolz("toolzhtm")
else if (li==3) parent.frames[4].openToolz("toolzjs")
else if (li==4) parent.frames[4].openToolz("toolzclr")
else if (li==5) parent.frames[4].openToolz("toolzfon")
else if (li==6) parent.frames[4].openToolz("toolzperl")
else if (li==7){parent.frames[4].openToolz("toolzscan")
flag_scan = true}
else if (li==8) parent.frames[0].document.FM[0].value +=
"\n\n"+
"\n"
else if (li==9) parent.frames[0].document.FM[0].value +=
"\n