Thread: colour highlighting of syntax

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Registered User
    Join Date
    Oct 2004
    Posts
    151
    Quote Originally Posted by risby
    It seems that the consideration that keywords should be delimited by whitespace was also not in the design.

    Have you ever thought of fixing it or would that be a completely bizarre suggestion on my part?
    More correctly they should be delimited by word boundaries, i.e. /\b\w+?\b/.

    I just use Vim's Convert to HTML and filter that through a Perl script to get BBCode whenever I want to get pretty. E.g.
    Code:
     1 #include <stdio.h>
     2 
     3 int main(void) {
     4     int ch;
     5 
     6     while ((ch = getchar()) != EOF)
     7         if (ch == '\n')
     8             printf("\n");
     9         else
    10             printf("%0x ", ch ^ 0xaa);
    11     printf("while Fooo if bar \"stuff\" foo break 'bar'....");
    12 
    13     return 0;
    14 }
    15 
    Last edited by zx-1; 09-19-2006 at 10:03 AM.
    System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.

    Useful resources:
    comp.lang.c FAQ | C++ FQA Lite

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM