|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: NRG Code Repository
Thank you...
Dang your quick when it comes to changes. |
|
#17
|
|||||
|
|||||
|
Re: NRG Code Repository
Could you possibly make it highlight C code also?
|
|
#18
|
|||
|
|||
|
Re: NRG Code Repository
How?
|
|
#19
|
|||||
|
|||||
|
Re: NRG Code Repository
Quote:
PHP Code:
|
|
#20
|
|||||
|
|||||
|
Re: NRG Code Repository
Quote:
Check http://us3.php.net/manual/en/function.eregi-replace.php You have to know regular expressions, but it's the quickest and most flexible way to do it. Just search for the keywords and replace them when you read the file into a variable...it shouldn't be too tough. |
|
#21
|
|||
|
|||
|
Re: NRG Code Repository
Someone give me a list of keywords, and I'll use PCRE's to do the highlighting.
|
|
#22
|
|||||
|
|||||
|
Re: NRG Code Repository
Quote:
I haven't done PHP lately (for about 6 months), so most is gone. <Edit>: SilverStar: int, unsigned, char, double, float, void, return There's prob. others, but those are the ones I know MPLAB uses. |
|
#23
|
||||
|
||||
|
Re: NRG Code Repository
here is a pre made program that does syntax highlighting, its free...
http://www.hotscripts.com/Detailed/10998.html |
|
#24
|
|||||
|
|||||
|
Re: NRG Code Repository
When I tried editing my boolean entry, it said "The page your are looking for cannot be found. Check the address or try again later." when I clicked on "Update"
|
|
#25
|
|||
|
|||
|
Re: NRG Code Repository
everything is done, except C code highlighting...
[edit] I'm writing my own C/C++ code highlighter. [/edit] Last edited by SilverStar : 26-01-2004 at 16:49. |
|
#26
|
|||||
|
|||||
|
Re: NRG Code Repository
Quote:
|
|
#27
|
||||
|
||||
|
Re: NRG Code Repository
the function in php that was mentioned for syntax highlighting is highlight_string() - this automatically adds syntax highlighting for a string of PHP code. (similar but not the same as C)
|
|
#28
|
|||||
|
|||||
|
Re: NRG Code Repository
One thing though. Please don't do the PHP-style orange commenting. It's very bad to have a light-on-light color scheme.
If you want, here's how VC++ does it: keywords: blue (#0000FF) - int, void, char, unsigned, return processor directives: green (#00FF00) - #define, #else, #ifndef comments: green (#00FF00) - /* */, // |
|
#29
|
||||
|
||||
|
Re: NRG Code Repository
i'm guessing that the custom syntax highlighting is currently a work in progress, seeing as right now is coloring most of my code pink
![]() |
|
#30
|
|||||
|
|||||
|
Re: NRG Code Repository
Quote:
)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:
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |