Posts: 4,307
Threads: 63
Joined: May 2003
[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?
Posts: 3,343
Threads: 83
Joined: Mar 2003
[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]
Posts: 4,307
Threads: 63
Joined: May 2003
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 =(
Posts: 3,522
Threads: 189
Joined: Dec 2003
*cough* *whisper* I still like the idea with images... *sigh*
Posts: 4,307
Threads: 63
Joined: May 2003
*coughcough-it-hasnt-been-discarded-coughcough*
Posts: 3,343
Threads: 83
Joined: Mar 2003
Yes, I'll put that in, hopefully later today
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]
Posts: 2,771
Threads: 96
Joined: Oct 2003
Posts: 1,080
Threads: 87
Joined: Feb 2002
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]
Posts: 3,343
Threads: 83
Joined: Mar 2003
It would take too much of my time
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).
Posts: 2,771
Threads: 96
Joined: Oct 2003
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...