Qbasicnews.com

Full Version: Generic Syntax Highlighting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
That's exactly how I remember it, because people wrote foo = INT(RND * 8) + 1 and the 8) was changed to a smiley. That was back when I first came here and for a while, I think it must have been fixed when Wildcard installed 2.0.6
could you make a button for it.
Could you look at the date before posting? This thread is 9 months OLD! :o
Quote:Could you look at the date before posting? This thread is 9 months OLD! :o
For the last time, SHUT UP ABOUT THIS CRAP.
Quote:
TheBigBasicQ Wrote:Could you look at the date before posting? This thread is 9 months OLD! :o
For the last time, SHUT UP ABOUT THIS CRAP.
I wont. It is very confusing! :-?
If it's on subject it doesn't matter the date really.... now... if someone were to go and post "moop" on a year old topic then that's a problem.


Did I get that right?

Anonymous

Quote:
TheBigBasicQ Wrote:Could you look at the date before posting? This thread is 9 months OLD! :o
For the last time, SHUT UP ABOUT THIS CRAP.

hrhr
Smile Hmm, yeah what, Dirogna wrote, why is not there a button? I so many times find myself putting: [sentax],. why I put that "E" I'm not sure, but 80% of the time my big clumsy hoof, :o *finger, hits it.. :roll: I've got better by catching this typo, but a button be nicer.. :wink:
It's not working properly
For example:

[syntax="qbasic"]
'-- ******************************************'
sub DelComments (STxt$ as string)
'delete comments in SrcTxt$
'function tally - see http://forum.qbasicnews.com/viewtopic.php?t=8787
' qt as string =chr$(34)
NQT=tally(STxt$, qt)
PQT1=0
PQT2=0
PRem=0
for i=0 to NQT+1
PQT1=instr(PQT2+1,STxt$, qt)
if PQT1=0 and PQT2>0 then ' no quotes yet
i=NQT+1
else
PQT2=instr(PQT1+1,STxt$, qt)
end if
'PQT2=instr(PQT1+1,STxt$, qt)
PRem=instr(PRem+1,STxt$, "'")
if (PRem < PQT1 and PRem >0) or (PQT1=0 and PRem >0) then
STxt$=left$(STxt$,PRem-1)
'print"2STxt$=";STxt$
exit for
else
PRem=PQT2
end if
next
end sub '
'-- *****************************************'
[/syntax]

1. Rem substring in PRem recognized as comment begin :o
2. Usually basic hilited as

for i=0 to NQT+1
' comment
Yep, thats because the syntax highlighter was written for QB, and Oracle (who isnt back yet, if he is ever coming back) has not written a Freebasic version.
Pages: 1 2 3 4