This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Updates to [code] [/code]


Updates to [code] [/code]

Postby Chris Edwards » Jan 16, 2002 @ 1:35am

Chris Edwards
Founder
User avatar
Chris Edwards
Site Co-Founder
 
Posts: 4048
Joined: Jan 24, 2001 @ 7:14pm
Location: Vancouver, BC


Postby James S » Jan 16, 2002 @ 1:44am

James S
pm Insider
 
Posts: 17064
Joined: Jan 12, 2002 @ 2:33pm
Location: Lexington, KY


Postby Thursday » Jan 16, 2002 @ 1:46am

From you friend,
Chuck
User avatar
Thursday
pm Member
 
Posts: 82
Joined: Dec 1, 2001 @ 12:45am
Location: Here and there


Postby Chris Edwards » Jan 16, 2002 @ 1:51am

Chris Edwards
Founder
User avatar
Chris Edwards
Site Co-Founder
 
Posts: 4048
Joined: Jan 24, 2001 @ 7:14pm
Location: Vancouver, BC


Postby MirekCz » Jan 16, 2002 @ 8:35am

With best regards,
Mirek Czerwinski
User avatar
MirekCz
pm Member
 
Posts: 269
Joined: Sep 18, 2001 @ 6:42pm
Location: Poland,city Poznań


Postby Phantom » Jan 16, 2002 @ 9:31am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby Phantom » Jan 16, 2002 @ 9:31am

Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby randall » Jan 16, 2002 @ 11:39am

User avatar
randall
pm Insider
 
Posts: 3426
Joined: Feb 23, 2001 @ 4:02pm
Location: Schnoogie


Postby Hosed » Jan 16, 2002 @ 2:30pm

User avatar
Hosed
pm Member
 
Posts: 249
Joined: Jan 3, 2002 @ 2:51am
Location: Montana, USA


Postby Dan East » Jan 16, 2002 @ 3:16pm

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Jan 16, 2002 @ 3:44pm

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


test

Postby Dan East » Jan 16, 2002 @ 4:29pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Chris Edwards » Jan 16, 2002 @ 4:47pm

Chris Edwards
Founder
User avatar
Chris Edwards
Site Co-Founder
 
Posts: 4048
Joined: Jan 24, 2001 @ 7:14pm
Location: Vancouver, BC


Postby Dan East » Jan 16, 2002 @ 4:58pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Dan East » Jan 16, 2002 @ 5:45pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron