codebliss

djberg96 on 2003-06-12T20:00:43

I learned about a new code-flood website today. Maybe this is common knowledge, but I didn't know about it until today. If you want folks to look at your code, but don't want to flood your IRC channel, consider the codebliss paste site. Even comes with syntax highlighting.


Syntax

Juerd on 2003-06-12T20:58:36

Syntax colouring requires some knowledge of syntax, but Codebliss doesn't seem to have that. For example, in "s/´/'/", it renders "180;/'/" as a comment. Its engine tries to render ""-delimited strings, but seems to be completely unaware of Perl's other quoting features.

It's okay to try and fail, but does Codebliss try? I think it has *keyword colouring*, not *syntax colouring*.

Some dictionary lookup tool (vandale.pl) looks like this in Codebliss:

http://codedbliss.com/clipboard/copy/perl/1

While with the use of Syntax::Highligh::Perl, Scribble (another paste service) renders it as:

http://tnx.nl/scribble/788XRTR

It clearly shows which parts are strings (or syntactically stringish things like regexes) and which are not.

Besides that, its URLs are shorter (which is nice on IRC, imho) and hard to predict (the number is sequential, but the letters are random).

Re:Syntax

Juerd on 2003-06-12T21:00:11

"s/´/'/" should have been "s/´/'/".

Re:Syntax

djberg96 on 2003-06-12T21:41:37

It's highlighting strings as well, so it's not just keywords. But, yeah, that's a bug.

Folks who know more than I do say the owner is using GNU's source highlighter which has problems with regex highlighting. I'll send an email.

BTW, scribble looks nice, but it only does HTML and Perl. :(

Re:Syntax

Juerd on 2003-06-12T22:45:39

> BTW, scribble looks nice, but it only does HTML and Perl. :(

Actually, it does any text you want :) Only Perl code is syntax coloured.

Reason for this is that I dislike fake syntax colouring where no attempt is made at really parsing the source. Most "syntax" colourers simply recognize some keywords and colour simple strings, like this Codebliss thing. I'd rather have no syntax colouring at all.

S::H::P has some bugs as of course only perl can parse Perl, but it's great for most code.

Re:Syntax

koschei on 2003-06-12T23:28:15

Have you tried Perl::Tidy?