Page 1 of 6 12345>Last »
Topic Options
#90471 - 2002-12-10 03:49 PM PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Only as a test (and don't call the long line police !)

for those interested in it : It highlights by now only Comments and Strings


Very messy [Frown]



[ 10. December 2002, 16:00: Message edited by: jpols ]
_________________________



Top
#90472 - 2002-12-10 03:50 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
[Eek!] [Eek!] [Eek!]

Joeel ! I think I need some advice [Roll Eyes]
_________________________



Top
#90473 - 2002-12-10 03:52 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
on what?
_________________________
!

download KiXnet

Top
#90474 - 2002-12-10 03:57 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
If I Save the output as html file and open in ie it shows quite ok ... but look at the mess above

First thing is the space between lines, It shouldn't be that big ...

Then Somewhere after 'case $char = '>' the font changes to strikethrough [Confused]
_________________________



Top
#90475 - 2002-12-10 04:00 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, you have syntax error in your code:
code:
<s pan style='color:#2E8B57'>'&gt;'</span>

also, I would not suggest you to write all whitespaces with NBSP. it makes the load a lot longer.
you should do something like:
code:
$line=join(split($line,"  ")," &nbsp;")

_________________________
!

download KiXnet

Top
#90476 - 2002-12-10 04:03 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ok, but whhat about tabs ?
_________________________



Top
#90477 - 2002-12-10 04:06 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about tabs?
_________________________
!

download KiXnet

Top
#90478 - 2002-12-10 04:10 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
ehhmmm ,

$line=join(split($line," "),"  ") in conversion would also fill whitespaces with nbsp's , no ? Same in Green ?

plus I would need to have another one for tabs in it
_________________________



Top
#90479 - 2002-12-10 04:10 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jochen????
_________________________
!

download KiXnet

Top
#90480 - 2002-12-10 04:14 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
[Mad]

[ 10. December 2002, 16:18: Message edited by: jpols ]
_________________________



Top
#90481 - 2002-12-10 04:15 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
no.
if you want colors, you can't use pre.
this means, you need to code all whitespaces longer than 1 with " "+nbsp

so, when you do that join-split on line and it has, say 6 whitespaces in the start, it would have then " "+nbsp+" "+nbsp+" "+nbsp

for tabs, it depends, but hardcoding by your desicion, say 4-6 spaces is good.
_________________________
!

download KiXnet

Top
#90482 - 2002-12-10 04:19 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hahaa [Razz]

roflol!!! [Eek!]

you have the PAN in there and I've never heard about such tag.
_________________________
!

download KiXnet

Top
#90483 - 2002-12-10 04:20 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I haven't got any pre's ???

My Orientation was Rogiers PostPrep 1.10 (well it converts much more characters than mine by now but it also uses those nbsps)

What is really weird to me is the fact it shows correctly if saved to a html file but fubarred if pasted to topic reply [Frown]

[ 10. December 2002, 16:22: Message edited by: jpols ]
_________________________



Top
#90484 - 2002-12-10 04:23 PM Re: PostPrep-Test Post , please ignore code
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you have a problem of converting...
well, let's say you haven't use to it [Wink]

can I ask much as let me see your current code?
maybe pm'ed if it's huge.
_________________________
!

download KiXnet

Top
#90485 - 2002-12-10 04:24 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
No I haven't !!

If I look after the line in my TextBox it says span not s pan ... [Mad] [Mad] [Mad]

That really pisses me off [Roll Eyes]
_________________________



Top
#90486 - 2002-12-10 04:27 PM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I will ...

hmm, will email you because there is a ini file needed that is realy a long liner [Big Grin]

But first I will go home now ... (Hmm ... maybe killing some innocent on my way [Mad] )
_________________________



Top
#90487 - 2002-12-11 09:50 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany


setascii("on")
$a = 1
cls
while $a < 5 ;Change this value to get more or less numbers
   $y = 1
       while $y <= 80
          $z = 1
          while $z <= 20
              at($z,$y) "$x " + chr($x)
              $z = $z + 1
              $x = $x + 1
          loop
          $y = $y + 10
       loop
   ? shell "%comspec% /c pause"
   $a = $a + 1
loop
exit



[ 11. December 2002, 15:00: Message edited by: jpols ]
_________________________



Top
#90488 - 2002-12-11 09:55 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
looks quite ok, but still the gaps between lines are too large ... any ideas on how to control that ?

(by the way If I try to edit the above post and try to add the text 'looks .. ' it says 'Sorry, we do not permit parenthesis in html tags' [Eek!] )
_________________________



Top
#90489 - 2002-12-11 10:15 AM Re: PostPrep-Test Post , please ignore code
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
You've got two breaks between each line. You have "<BR>" followed by "<BR />".

This will cause a blank line to be displayed. Remove one of the breaks to fix it.

BTW does anyone know what "<BR />" is? It is not a standard HTML tag as far asd I know.
I've seen it used as a kludge to force IE to render output immediately but I cannot find any references to it.

Top
#90490 - 2002-12-11 10:23 AM Re: PostPrep-Test Post , please ignore code
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Richard,

that 'br /' tag thing didn't came from my conversion .. it was somehow added when posted [Confused]

MAYBE, because I have not all characters converted to html such as ( and ) ?

[ 11. December 2002, 10:24: Message edited by: jpols ]
_________________________



Top
Page 1 of 6 12345>Last »


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.142 seconds in which 0.085 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org