[code] highlighting

Started by Payoang, July 13, 2010, 02:12:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Payoang

Because it's just a bit better in color.

[code=java] System.out.println("this is java!");[/code]
[code=php] echo "this is a String in Php"; [/code]

Code (java) Select
System.out.println("this is java!");
Code (php) Select
echo "this is a String in Php";

bommel

Nice!
now I can write
Code (java) Select

while(true) {
    if (false) {
        throw new IdiotException("skxawng!");
    }

    continue;
}

and it looks beautiful!

hawnuyuna'viyä

Hang on.
I am not seeing anything other than black text.

Using chromium 6.0.435.0 (build 49656) on Gentoo Linux amd64.

Payoang


bommel

No issues with Safari on Mac OS X 10.6.4 as well ;)

Kemaweyan

Code (php) Select
<?php

echo "Txantsana tìkangkemvi, ma tsmukan";

?>
Nìrangal frapo tsirvun pivlltxe nìNa'vi :D

hawnuyuna'viyä

#6
Quote from: Payoang on July 13, 2010, 02:51:41 PM


:D

Doesn't work for me in Firefox 4 beta2pre (yes I have that too).
Perhaps it is just me.
Can anyone confirm for normal chrome?
I am starting an XP VM now to test.

Edit: It even works in IE6!!!! Chrome on Windows: works too.
Looks like it is just me. Debugging kit ready...

hawnuyuna'viyä

Got it.
Whoever set it up didn't consider the fact that I (and others) may have changed from the forum's default theme to something else. (I changed to Babylon because it is lighter so better for mobile viewing).

In other words, please copy the appropriate files to the other themes too.
Irayo.
HN

bommel

Quote from: hawnuyu na'viyä on July 13, 2010, 03:15:10 PM
Got it.
Whoever set it up didn't consider the fact that I (and others) may have changed from the forum's default theme to something else. (I changed to Babylon because it is lighter so better for mobile viewing).

In other words, please copy the appropriate files to the other themes too.
Irayo.
HN
Ah, those nice little flaws you never think of ;)

hawnuyuna'viyä

Quote from: bommel on July 13, 2010, 03:16:37 PM
Quote from: hawnuyu na'viyä on July 13, 2010, 03:15:10 PM
Got it.
Whoever set it up didn't consider the fact that I (and others) may have changed from the forum's default theme to something else. (I changed to Babylon because it is lighter so better for mobile viewing).

In other words, please copy the appropriate files to the other themes too.
Irayo.
HN
Ah, those nice little flaws you never think of ;)

It's always important to keep ones debugging skills ready. (Thank you chrome for your built in tools, otherwise I would have had to have (not quite the record level of haves) started firebug)

Tsamsiyu92

#10
Looks cool.

I am using Firefox 3.6.6 and it works perfectly here.

Code (java) Select

Txo nga!=skxawng;
{
peng(frapo,fì'ut(nga plltxe nìna'vi));
txo ayfo.tsleram();
{
 lrrtok.si();
}
txo ke(afyo.tsleram());
{
tspang(ayfo);
}
}

Key'ìl Nekxetse

Here's my version of life_the_universe_etc.py  ::)
The source code of the universe:
Code (python) Select

class kifkey (list):
    #Hope this works, maybe rewrite in 2.0
    def __init__(self):
        #This code should bootstrap physics engine
        everything=42
    def meaning_found(self):
        #Crash when meaning of life, etc. found
        #TODO: more complicated universe
        raise Exception("Unknown")
class tute:
    #Basic class for intelligent life
    def __init__(self,type):
        if type=="tawtute":
            raise Exception("Denied")
        elif type=="na'vi":
            pass
        self.rerey=True
Key'ìl Nekxetse on "The Revolutionists"
~$ life --help
The program life received signal SIGSEV. Core dumped.

wm.annis

Hmm.

Code (lisp) Select
(defmacro alambda (parms &body body)
 `(labels ((self ,parms ,@body))
    #'self))


Edit: well, that's disappointing.

hawnuyuna'viyä

Quote from: hawnuyu na'viyä on July 13, 2010, 03:15:10 PM
In other words, please copy the appropriate files to the other themes too.
Still not working. :(
I shall assume the 'cp -R *' hasn't been done yet then.