Page 1 of 2

Updates to [code] [/code]

PostPosted: Jan 16, 2002 @ 1:35am
by Chris Edwards

PostPosted: Jan 16, 2002 @ 1:44am
by James S

PostPosted: Jan 16, 2002 @ 1:46am
by Thursday

PostPosted: Jan 16, 2002 @ 1:51am
by Chris Edwards

PostPosted: Jan 16, 2002 @ 8:35am
by MirekCz

PostPosted: Jan 16, 2002 @ 9:31am
by Phantom

PostPosted: Jan 16, 2002 @ 9:31am
by Phantom

PostPosted: Jan 16, 2002 @ 11:39am
by randall

PostPosted: Jan 16, 2002 @ 2:30pm
by Hosed

PostPosted: Jan 16, 2002 @ 3:16pm
by Dan East
I'm pretty sure Chris could set a max height and use a vert scrollbar if it is exceeded. Chris, I would set it for at least 50 lines or so.

The syntactic keyword coloring php script is done, and works very well (if I do say so myself :) ). It would be online already, but the actual integration into the phpBB code isn't very straightforward. Hopefully it will be online later today.
The only thing that is not working to my knowledge is coloring #include strings:
#include <stdio.h>
In that example the stdio.h is not colored like a string.

If we can figure out a way to pass parameters via the [ code ] tags, then I will allow additional formatting options, like line numbers, and how many spaces a tab should be translated into (I'm currently using 4, which is what eVC uses). I can perhaps add support for additional languages besides C / C++, which could also be specified as a parameter in the code tag.

Dan East

PostPosted: Jan 16, 2002 @ 3:44pm
by Dan East
Well, 50 lines would be too many. Perhaps 35 or 40.

I've added a summary to the syntactic coloring that shows various stats about the source (number of lines, operators, keywords, comments, etc).

BTW, the topic review window when you post is very cool. It does not hold up the loading of the page, sorts the posts so the most recent is on top, and doesn't make the page 5000 lines tall for big threads. This BB is such a massive improvement over what we had before that it's hard to even realize how much better off we are.

Dan East

test

PostPosted: Jan 16, 2002 @ 4:29pm
by Dan East

PostPosted: Jan 16, 2002 @ 4:47pm
by Chris Edwards

PostPosted: Jan 16, 2002 @ 4:58pm
by Dan East

PostPosted: Jan 16, 2002 @ 5:45pm
by Dan East