Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBasic syntax highlighted code
#61
[syntax="qbasic"]'Test QB program
REM Another comment

INPUT "An input statement!", A$
PRINT "An output statement!"

A$ = A$ + "Test" 'A

FOR i% = 1 TO 100
PRINT i% + "." + "Blah!!!"
NEXT[/syntax]

Why isnt "NEXT" highlighted?

Why are "REM" and " ' " comments differently highlighted?
Reply
#62
[syntax="PHP"]/**
* Both problems now fixed, I hadn't defined REM as a comment,
* and the NEXT wasn't highlighted because of php's REGEXP
* behaviour.
*/

include('includes/bbcode.php');
while ( $r == true )
{
eat_me(strtolower($r));
}
$foo = array(
'1' => 'Hello!!!',
'2' => "Here's a string with different delimiters ( ' ' ' ') and escaped chars \" hello \ shlkej \n \""
);[/syntax]
Reply
#63
Great. Is C/C++ supported?


[syntax="c++"]
/* A comment */
// Another comment!

#include <iostream>

using namespace std;

int main()
{
cout<<"This is an output statement!!!";
cin>>some_input_variable;
}
[/syntax]

edit: guess no =(
Reply
#64
*cough* *whisper* I still like the idea with images... *sigh*
Reply
#65
*coughcough-it-hasnt-been-discarded-coughcough*
Reply
#66
Yes, I'll put that in, hopefully later today Big Grin

Ideas for colors? I need colors for:

comments
keywords
numbers
brackets (?)

(that's a small list for a language, it must be QB ^_^)

[syntax="qbasic"]' a comment
( ) ' some brackets
PRINT "a keyword, and a string";
A# = 4 ' a var
'$include: 'some meta'[/syntax]
Reply
#67
=O its working!! yey!!
Reply
#68
How about each user setting their own color template!!!...never mind...

Just wondering, would it be hard/slow to have the stylsheet/whatever color info (qbasic syntax and/or even rest of the forum)
saved as a cookie on the users computer and the user having
the possibility to [totally] customize the look of the forum?
/post]
Reply
#69
It would take too much of my time Sad

I'm going to ditch the IDE - as those in subOracle can see, it doesn't look that great, especially when there's a long line of code. I'll change the colours back and upload the new syntax engine (which will do the numbers and brackets again).
Reply
#70
You changed the mini pictures for Sub-Oracle!!
Now It is very hard to see what is a new post and what is old! It hurts my eyes because I have to take time to check carfully wether a topic has new posts. anyone agree with me?

Maybe you could darken the "New posts" picture, make the contrast between that and the "No new posts" more clear. Thnx

Edit: And waht happened to the QBasic screen images thing?

Edit2: and the syntax="qbasic" thingy doesnt indent properly...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)