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
^ Bleh, so does [code]. There's a phpBB mod to fix that, I might look at integrating it, but probably not.

I'm going to work on colouring soon, I want to make it like the last version (where colours could be changed for each style).
No it doesnt =P

Code tags:
Code:
;)

And it is a real problem. The smilies replace the text, so you can miss out parts of the program that is supposed to be there.

what if you had this:

[syntax="qbasic"]blah$ = "(8)"
print blah$[/syntax]

That SHOULD be:
Code:
blah$ = "(8)"
print blah$
In which case somebody must've already installed the mod for code tags Wink. I'll fix [syntax] later,
I've fixed the colours for smartdark now. Is that more readable?
[syntax="c"]
function Testing (int a, int b)
{
if (a < b) {
cout << "testing" << endl;
} else {
return 0;
}
}
[/syntax]

Hmmmm, nice one... final mod is expected... when?
When I get around to it Wink. I still have many issues to iron out - at the moment it doesn't use the bbcode_tpl thing that all other BBCodes use, and that's normally grounds for an instant refusal by the team at phpBB, so I'll have to talk to them first.
Quote:In which case somebody must've already installed the mod for code tags
Code has never respected smilies...... that was the whole purpose of the code blocks.
Code used to just play them out, I'm sure of it. Possibly this was just built into a newer version and now we have that... I could be wrong of course...
Quote:Code used to just play them out, I'm sure of it. Possibly this was just built into a newer version and now we have that... I could be wrong of course...

Code was made to stop smileys (among other formatting issues) from occuring when trying to post. For as long as I can remember, phpbb has always been this way (with vbulletin being the same way).
I remember smileys showing in code blocks. I remember myself having to edit posts with 8) and change it to 8 ).
Pages: 1 2 3 4