Syntax Higlighter

Syntax Higlighter

Namestil sem si plugin za barvanje sintakse. Pa poglejmo…

[c]
int main ()
{
int a, b;
srand(time());
a = 1 + (int) (10.0 * (rand() / (RAND_MAX + 1.0)));
switch (a)
{
case 1: printf(“You’re number One!\n”); break;
default: printf(“You’re more than one!\n”); if (a > 3) { printf(“Testing really large values of A. Really large, sort of. We’re just testing couple of long lines… In the code box… That’s it. Yeah!\n”); } break;
}
printf(“Counting: “);
for (b = 0; b < a; b++) { printf(" %d"); } printf("!\n Bailing out!\n"); return 0; } [/c] Update: Celo zadevo je bilo potrebno malo 'potweakat', sedaj pa dela kar lepo. Syntax hiliter dela tudi v komentarjih, vse kar je potrebno, je to, da kodo objamete z oznako [ c ] [ /c ] za jezik C. Potem so tukaj še cpp, js, vbs, perl, phyton, php, xml, sql...

6 thoughts on “Syntax Higlighter

  1. oooo… fukiš… morm se še mal igrat…

    [c]
    while(NULL != (event = getNextEvent())) {
    sleep(10*rand());
    declareArbitraryWordsAsImproperlySpelled();
    rearrangeAllFigures();
    randomlyMessWithStyles();
    attemptToProcessEvent(event);
    if(rand() > 0.001)
    busyWaitForAWhile();
    doSomethingUselessInTheForegroundClaimingItsDoneInTheBackground();
    indeterministicallyFuckAroundWithTables();
    if(!savedInTheLastHour())
    crashWithHighProbability();
    guessWhatTheUserWantsAndDoTheOpposite();
    triggerANumberOfExposeEventsAllOverTheWindow();
    }
    [/c]

  2. Dear Sirs,
    we’ve come accross your contribution on some obscure web blog in which you revealed a part of our highly classified source code which is contained in one of our market leading products. If you do not remove your post and pay us dearly we will be forced to prosecute you by the full extent covered by copyright law.

    Stevie
    Massivesoft corporation, Suck your wallet dry department

Comments are closed.

Comments are closed.