Go to Post All I know is that last year in Philadelphi, our camera locked dead onto MOE (Team 365) and their flourescent green shirts during the matches. They might want to consider what would happen if they get pelted with balls during the autonomous period! :ahh: - Greg Marra [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 26-01-2004, 18:10
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: NRG Code Repository

Quote:
Originally Posted by Astronouth7303
(Sorry, I'm looking at MPLAB, I don't have MSVC++ on this machine )

MPLAB does Proc. Directives blue, and I've seen them purple, too.
Keywords are bold.
Constants are a slightly lighter green then the comments.
Symbols are gray ({} > < = ; etc.)
Strings are blue BUT NOT BOLD!

The colors (and purposes) are below:

  • 000000 Default
    2121B5 Strings, Hex
    2121CE Keywards, Processor directives
    218C21 Numbers
    296B52 Comments
    848484 Symbols
    FF0000 Errors
    FFFFFF Background
I'd post the image, but I can't attach (or can't find the button)

Would it be possible (sometime in the future) to put the coloring specifics in the User CP?
I think having a light color on a light background is bad though. I've had numerous accounts of adding a double '{' thinking I didn't have the first one in, because of the very small contrast in colors.

But thanks for the list of the color/values. For attatchments, there's a button called "Manage Attatchments". Click that, and that'll let you upload stuff
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #32   Spotlight this post!  
Unread 26-01-2004, 18:16
Guest
 
Posts: n/a
Re: NRG Code Repository

Quote:
Originally Posted by Raven_Writer
I think having a light color on a light background is bad though. I've had numerous accounts of adding a double '{' thinking I didn't have the first one in, because of the very small contrast in colors.

But thanks for the list of the color/values. For attatchments, there's a button called "Manage Attatchments". Click that, and that'll let you upload stuff
My decision:

I'll go with everything in the post quoted above.
  #33   Spotlight this post!  
Unread 26-01-2004, 18:33
Guest
 
Posts: n/a
Re: NRG Code Repository

Want to see the current source of the highlighter?

Go here: http://nrg.chaosnet.org/source/repository/download.php
  #34   Spotlight this post!  
Unread 26-01-2004, 18:38
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: NRG Code Repository

Quote:
Originally Posted by SilverStar
Want to see the current source of the highlighter?

Go here: http://nrg.chaosnet.org/source/repository/download.php
That's really cool. Thanks for showing the source for it. Did you use any PHP functions for showing the code? (I know there's highlight_code(...) & show_source(...)....don't quite understand how they work though)
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #35   Spotlight this post!  
Unread 26-01-2004, 18:40
Guest
 
Posts: n/a
Re: NRG Code Repository

I use a buffer to hold all the source so that I can format it into a table with line numbers. You're right, I use show_source and highlight_file (not _code)
  #36   Spotlight this post!  
Unread 26-01-2004, 18:41
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: NRG Code Repository

Quote:
Originally Posted by SilverStar
I use a buffer to hold all the source so that I can format it into a table with line numbers. You're right, I use show_source and highlight_file (not _code)
Cool. Sorry about that, I forgot weither it was highlight_file or highlight_code
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #37   Spotlight this post!  
Unread 26-01-2004, 19:38
Guest
 
Posts: n/a
Re: NRG Code Repository

Our job now:

To get people to add code to the repository.

And, can this thread be made sticky?
  #38   Spotlight this post!  
Unread 26-01-2004, 19:52
mtrawls's Avatar
mtrawls mtrawls is offline
I am JVN! (John von Neumann)
#0122 (NASA Knights)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Hampton, VA
Posts: 295
mtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to beholdmtrawls is a splendid one to behold
Send a message via AIM to mtrawls
Re: NRG Code Repository

Syntax hilighting is not quite so simple. There are special cases you have to account for, that make the code somewhat more complex. For example, if I make a comment that says:
Code:
// If the "if" statement's condition below is true, it should run the "auto-vivify-functifier" 
I wouldn't expect 'if' to be highlighted another color, nor would I expect the text in quotation marks to be highlighted another color. Also, you have to watch out for "This string keeps on \" going \", even though I just had two quotation marks, I'm still not finished." There are many other conditions you have to watch out for, too. Sure, not all these cases might come up, ... and really, someone can just copy the coad into their favorite C editor anyway, ... but I'd look for an already done solution (why reinvent the wheel? unless, of course, this is for your edification, in which case you might want to think about more of the special cases yourself).

For an example of some conditions you didn't catch, look at the PID code. EDIT: especially, looking over it again, in the Trig lookup table, the "extra" highlighted parts of the comment can get annoying, and potentially mess someone up.
  #39   Spotlight this post!  
Unread 26-01-2004, 20:27
Guest
 
Posts: n/a
Re: NRG Code Repository

The reason I did not use an already made module is because I don't have permissions on the chaosnet server (our host) to install stuff. Since people can see the "special cases" in their own editor (like you said), I'm not gonna spend much more time working on the highlighter. If anyone wants to, they can post it in "Website (Perl/PHP)" folder.
  #40   Spotlight this post!  
Unread 26-01-2004, 20:36
Guest
 
Posts: n/a
Re: NRG Code Repository

Each entry can now be rated on 1 to 5 scale.
  #41   Spotlight this post!  
Unread 26-01-2004, 20:57
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: NRG Code Repository

cool beans.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #42   Spotlight this post!  
Unread 26-01-2004, 21:05
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: NRG Code Repository

btw, SilverStar, do you have AIM (preferably) or MSN?
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #43   Spotlight this post!  
Unread 26-01-2004, 21:07
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: NRG Code Repository

pm, then? or just message me - deltacoder on AIM, mobile@vectorray.com on MSN
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #44   Spotlight this post!  
Unread 26-01-2004, 21:10
Guest
 
Posts: n/a
Re: NRG Code Repository

just post stuff here, i'll read it.
  #45   Spotlight this post!  
Unread 26-01-2004, 21:17
Guest
 
Posts: n/a
Re: NRG Code Repository

Quote:
Originally Posted by deltacoder1020
btw - would it be possible to add both a comments system and a file update system to the repository?
Working on comments system, should be simple.

File update system - you can always edit your code. But I'll work on an version managemtent system (will take time).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
InfraRed autonomous code ... mtrawls Programming 1 11-01-2004 00:25
Autonomous code PBoss Programming 7 14-01-2003 15:29
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
Patent source code? Kyle Fenton Chit-Chat 3 20-10-2001 17:53


All times are GMT -5. The time now is 11:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi