Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generic Syntax Highlighting
#21
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
Reply
#22
could you make a button for it.
Reply
#23
Could you look at the date before posting? This thread is 9 months OLD! :o
Reply
#24
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.
I'd knock on wood, but my desk is particle board.
Reply
#25
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! :-?
Reply
#26
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?
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#27
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
Reply
#28
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:
Kevin (x.t.r.GRAPHICS)

[Image: 11895-r.png]
Reply
#29
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
ith best regards, Andrew Shelkovenko.
http://www.wildgardenseed.com/RQDP/FreeBasic/index.html - FreeBasic documentation Project
Reply
#30
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)