Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

4chan code syntax highlighting

Name: Anonymous 2008-06-12 7:12

tl;dr summary: everything inside [code]..[/code] tags is now showing Javascript syntax highlighting

Seeing odd colours in posts, I WTF'd for a while, until I found this buried in http://dis.4chan.org/script/global.js:

function loadSyntaxHighlighter() {
    var code = document.getElementsByTagName("code");

    if (code.length) {
        var head = document.getElementsByTagName("head")[0];
        for (var i=0; i < code.length; i++) {
            code[i].setAttribute("class", "prettyprint");
        }

        var prettify = document.createElement("script");
        prettify.src = "script/prettify.js";
        prettify.type = "text/javascript";
        head.appendChild(prettify);
    }
}


Basically if it finds any code tags on a page, it loads http://dis.4chan.org/script/prettify.js and applies it to them.

Name: Anonymous 2008-06-12 7:13

It made me RAGE

Name: Anonymous 2008-06-12 7:21

You are correct. You may wish to read this thread:

http://dis.4chan.org/read/prog/1213218292

Name: Anonymous 2008-06-12 7:54

>>1
This is not working for me. what should i do

Name: Anonymous 2008-06-12 7:58

>>4
never mind, fixed

Name: Anonymous 2008-06-12 8:34

>>1
THANKS CAPTAIN OBVIOUS GOOD RESEARCH

Name: Anonymous 2008-06-12 8:37

YUO ARE TEH SLEUTH

Name: Anonymous 2008-06-12 11:18

Noscript means no highlighting.

Name: Anonymous 2008-06-12 11:37


#include <stdio.h>
int main(void) { const char * const ** const const p = 0; return !!p; }

test.

Name: Anonymous 2008-06-12 11:38


#include <stdio.h>
int main(void) { const char*const**const const p = 0; return !!p; }

test2
(lambda () #(`(,val)()))

Name: Anonymous 2008-06-12 11:39



#include <stdio.h>
int main(void) { const char*const**const const p = 0; return !!p; }

test3

Name: Anonymous 2008-06-12 11:39

>>11
Nice fail MrFagbob

Name: Anonymous 2008-06-12 11:56

Testing syntax highlighting for perl


use LWP::Simple;
use Text::Wrap;
$_=get("http://live.gizmodo.com");s/<(a|img) (src|href)="(.*?)">/($3) /g==9||s/<\/a>//g==5||print"\n\nWhats happening::\n  ".wrap("","",$_)for/w\x27><p>(.*?)<\/p/g

Name: Anonymous 2008-06-12 11:59

Programming
Style: Yotsuba, Pseud0ch, Terminal 
Navigation:

    * 1: Weak typing (8)
    * 2: Pyttles (1)
    * 3: 4chan code syntax highlighting (12)
    * 4: Botnet (16)
    * 5: Django project model design (22)
    * 6: Poems (49)
    * 7: LISP [Part 6] (170)
    * 8: LET ME GO (29)
    * 9: Guido van Rossum (5)
    * 10: P=NP is impossible on a turing machine (48)
    * 11: JAVA part I (179)
    * 12: Anonix. (577)
    * 13: LISP part VI (45)
    * 14: Sepples Part II (11)
    * 15: P=NP is impossible on a soda machine (6)
    * 16: Anyone trying to learn C++ (147)
    * 17: Sepples (64)
    * 18: Leah Culver (121)
    * 19: THE GINGER RETURNS (15)
    * 20: FB (53)
    * 21: My Curriculum for Learning Haskell (11)
    * 22: SQL Injection (7)
    * 23: How do you pronounce /prog/? (25)
    * 24: Save /prog/ (198)
    * 25: Good starter language? (84)
    * 26: Post your blawg (185)
    * 27: Convert to Integer in Python (16)
    * 28: I want FSF "truck balls" (4)
    * 29: Ubuntu (7)
    * 30: #sicp help and support thread (11)
    * 31: Metroidvania (18)
    * 32: you are so bravely to change gender (17)
    * 33: LISP [Part 7] (14)
    * 34: LISP part EMACS (3)
    * 35: LISP (5)
    * 36: The ABC Programming Language Part I (6)
    * 37: C (34)
    * 38: Microsoft Excel (3)
    * 39: firefox passwords (8)
    * 40: Java command (8)


New Thread | All Threads

Name: Anonymous 2008-06-12 12:00

>>13
Didn't you hear? Only Haskell can parse Perl6

Name: Anonymous 2008-06-12 12:08

why do you have javascript enabled

Name: Anonymous 2008-06-12 12:10





TEST

Name: Anonymous 2008-06-12 12:11

>>16
Why wouldn't you?  Just disable window resizing, moving, and shit and it's fine.

Name: Anonymous 2008-06-12 12:39

function

Name: Anonymous 2008-06-12 12:51

This thread is going places

Name: Anonymous 2008-06-12 14:29

What the fuck syntax highlighting is an abomination keep it away from my browser.

Name: Anonymous 2008-06-12 14:29

>>21
YOU USE A BROWSER WITH COLOUR, HOW DARE YOU EVEN TALK TO ME

Name: Anonymous 2008-06-12 14:34

>>22
70's abandonware are not net browsers.

Name: Anonymous 2008-06-12 16:01

The Game

Name: Anonymous 2008-06-12 17:05




    '-._                  ___.....___
        `.__           ,-'        ,-.`-,
            `''-------'          ( p )  `._    
                                  `-'      (
                                            \
                                  .         \
                                   \---..,--'
       ................._           --...--,
                         `-.._         _.-'
                              `'-----''

Name: Anonymous 2008-06-12 17:32

Good thing my browser supports neither javascript nor CSS.

Name: Anonymous 2008-06-12 17:38

Name: Anonymous 2008-06-12 18:24

>>24
Clearly mvb was tired of losing the game.

Name: Anonymous 2008-06-12 18:33

>>28
lol'd

Name: Anonymous 2008-06-12 18:52

test

Name: Anonymous 2008-06-12 19:08


            \ HAVE YOU READ YOUR SICP TODAY /

     .     `      ___  ` '   ` '
        ,   , `  / q |__   ` .       /o\ - HOLY CRAP
               '|      / ,`'          |
--------------'`\      /;`------------/\

Name: Anonymous 2008-06-12 19:16

>>31
lol, dune

Name: Anonymous 2008-06-12 19:32

>>31,32
same person.
fail.
FAIL.
FAAAAIIIIILL

MOTHERFUCKINGC FAIL

 _____ _   _  ____ _  _____ _   _  ____ _____ _    ___ _
|  ___| | | |/ ___| |/ /_ _| \ | |/ ___|  ___/ \  |_ _| |
| |_  | | | | |   | ' / | ||  \| | |  _| |_ / _ \  | || |
|  _| | |_| | |___| . \ | || |\  | |_| |  _/ ___ \ | || |___
|_|    \___/ \____|_|\_\___|_| \_|\____|_|/_/   \_\___|_____|

Name: Anonymous 2008-06-12 19:37

>>32
>>33
same person
>>31
different person, i.e. me. I've never seen Dune, unfortunately

Name: Anonymous 2008-06-12 19:41


/* test test
 factorial :: Integer -> Integer
 factorial n | n == 0 = 1
             | n > 0  = n * factorial (n - 1)
*/

Name: Anonymous 2008-06-13 10:11


LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????????????LISP????LISP????????????LISPLISP????????????LISPLISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????????????LISP????LISP????????????LISPLISP????????????LISPLISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????????????LISP????LISP????????????LISPLISP????????????LISPLISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????????????LISP????LISP????????????LISPLISP????????????LISPLISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????????????????LISP????????????LISP????????LISP????LISP????LISP????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????????????????LISP????????????LISP????????LISP????LISP????LISP????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????????????????LISP????????????LISP????????LISP????LISP????LISP????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????????????????LISP????????????LISP????????LISP????LISP????LISP????LISP????LISP????????????????????????
????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLISP????LISP????????????????????LISP????LISP????????LISP????????LISP????LISPLISPLISPLISPLISP????????
????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLISP????LISP????????????????????LISP????LISP????????LISP????????LISP????LISPLISPLISPLISPLISP????????
????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLISP????LISP????????????????????LISP????LISP????????LISP????????LISP????LISPLISPLISPLISPLISP????????
????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLISP????LISP????????????????????LISP????LISP????????LISP????????LISP????LISPLISPLISPLISPLISP????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????????
????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????LISP????????????????????LISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????LISP????????????????????LISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????LISP????????????????????LISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP
????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????LISP????????????????????LISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP

Name: Anonymous 2008-06-13 10:20

TEH GAEMZ

Name: Anonymous 2008-06-13 10:22

LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????????????????LISP????????????????LISP????????????????????LISP????

LISPLISPLISPLISPLISPLISPLISP

LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS????????????????PLISPL???????????????LISPL??????????????????PLISP????

LISPLISPLISPLISPLISPLISPLISP

LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS???????????????SPLISPLI??????????????LISPLI????????????????SPLISP????

LISPLISPLISPLISPLISPLISPLISP

LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS??????????????ISPLISPLIS?????????????LISPLIS??????????????ISPLISP????

LISPLISPLISPLISPLISPLISPLISP

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????????????LISP????LISP????????????LISPLISP????????????LISPLISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP???????????LISP??????LISP???????????LISP?LISP??????????LISP?LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP??????????LISP????????LISP??????????LISP??LISP????????LISP??LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP?????????LISP??????????LISP?????????LISP???LISP??????LISP???LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????????????????LISP????????????LISP????????LISP????LISP????LISP????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP???????????????????????????????LISP??????????????LISP???????LISP?????LISP??LISP?????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP??????????????????????????????LISP????????????????LISP??????LISP??????LISPLISP??????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP?????????????????????????????LISP??????????????????LISP?????LISP???????LIIISP???????LISP????

LISP????????????????????????

????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISP????????LISP????????????????????LISP????LISP????????LISP????????LISP????

LISPLISPLISPLISPLISP????????

????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLIS?????LISP????????????????????LISP????LISP?????????LP?????????LISP????

LISPLISPLISPLISPLISP????????

????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLIS?????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISP????????

????????????LISP????????????????LISPLISPLISPLISPLISPLISPLISP????LISPLISPLISPLISPLISP????????????????????????LISP????????LISPLISPLISPLIS?????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISP????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISP????????????????????????????????????????LISP????????????????????LISP????LISP????????????????????LISP????LISP????????????????????LISP????

LISP????????????????????????

????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS?????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISPLISPLISP

????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS?????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISPLISPLISP

????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP?????????????????ISPLISPLISPLISPLISPLISPLIS?????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISPLISPLISP

????????????LISP????????????????LISP????????????????????LISP????LISPLISPLISPLISPLISPLISPLISP????????????????????LISPLISPLISPLISPLISP????????LISP????????????????????LISP????LISP????????????????????LISP????

LISPLISPLISPLISPLISPLISPLISP


v2

Name: Anonymous 2008-06-13 10:22

>>37
The Gemz?

Name: Anonymous 2008-06-13 10:26

>>39
TEH GAYMZ

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List