httpwebwitch

msg:4139029 | 7:44 pm on May 25, 2010 (gmt 0) |
yes yes yes yes yes!
|
Fotiman

msg:4139042 | 7:50 pm on May 25, 2010 (gmt 0) |
Great suggestion!
|
quixotic

msg:4139179 | 8:59 pm on May 25, 2010 (gmt 0) |
Personally I like GeSHi: [qbnz.com ] But Alex Gorbatchev SyntaxHighlighter is also really nice: [alexgorbatchev.com ] Both are fairly easy to implement.
|
dhardisty

msg:4139213 | 9:20 pm on May 25, 2010 (gmt 0) |
Yes, this would be great!
|
Brett_Tabke

msg:4139228 | 9:29 pm on May 25, 2010 (gmt 0) |
We have the perl Kate syntax highlighter system already embedded. We have only to announce it. example [webmasterworld.com...] cpan [search.cpan.org...]
|
quixotic

msg:4139240 | 9:41 pm on May 25, 2010 (gmt 0) |
Excellent! Looks like it can do most languages to boot...
|
alt131

msg:4139358 | 10:48 pm on May 25, 2010 (gmt 0) |
Code is always problematic - especially as the "code" tag only gets the first line in a code block, and that leaves quotes as about the next best option. Not sure if I would like automated code highlight - css / html forums often get lots of massive code dumps, and automated highlighting may possibly exacerbate the visual "clutter". I like the suggestion of line-numbering. Better implementation of the code tag would be great. The ability to manually colour lines/comments was a great tool, but I noticed it wasn't available when I tried to use it a few days ago.
|
gmarkmananquil

msg:4139478 | 12:40 am on May 26, 2010 (gmt 0) |
well, thats good. It is really good to have that one, too emphasize codes with errors, and easy to point out what is the problem of the code.
|
caribguy

msg:4139558 | 1:53 am on May 26, 2010 (gmt 0) |
Resounding YES! Personally, I would help out more often if I could make sense of what people are trying to achieve. Syntax highlighting (and preformatting?) would help a lot in that respect.
|
daveVk

msg:4140041 | 1:01 pm on May 26, 2010 (gmt 0) |
Yes, this would be very helpful.
|
alias

msg:4140160 | 2:44 pm on May 26, 2010 (gmt 0) |
that would be one of the biggest improvements to this forum.
|
MatthewHSE

msg:4140427 | 5:17 pm on May 26, 2010 (gmt 0) |
I absolutely love how the Sitepoint forums handle syntax highlighting: Numbered lines Code in a scrolling <div> of a consistent height/width VERY nice and clear coloring Proper handling of tabs and spaces.
|
andrewsmd

msg:4140445 | 5:36 pm on May 26, 2010 (gmt 0) |
It would also be nice to be able to keep track of the indentation of code!
|
jezra

msg:4140555 | 6:41 pm on May 26, 2010 (gmt 0) |
I can't agree with andrewsmd more. Syntax highlighting is nice, but to me, code indentation is a must.
|
jbinbpt

msg:4140563 | 6:45 pm on May 26, 2010 (gmt 0) |
We have the perl Kate syntax highlighter system already embedded. We have only to announce it. |
| Works for me
|
lavazza

msg:4140837 | 9:24 pm on May 26, 2010 (gmt 0) |
| css / html forums often get lots of massive code dumps |
| True As per 'syntax highlighting', folding would be nice :) Here's another vote for indentation
|
Brett_Tabke

msg:4140852 | 9:33 pm on May 26, 2010 (gmt 0) |
The syntax highlight will have a line limit. We are not going to become a code dump forum...
|
lavazza

msg:4140861 | 9:40 pm on May 26, 2010 (gmt 0) |
| We have the perl Kate syntax highlighter system already embedded. We have only to announce it. |
| Works for me |
| Not me... :( What am I missing?
|
Matthew1980

msg:4140874 | 9:47 pm on May 26, 2010 (gmt 0) |
AndrewsMD, It would also be nice to be able to keep track of the indentation of code! |
| Definitely, lots of times I have been caught out using the tab, then realising I have stopped entering text! perl Kate syntax highlighter system already embedded. |
| Well if it is, I cant see it?! - I'll keep looking... Cheers, MRb
|
EvilSaint

msg:4141114 | 1:30 am on May 27, 2010 (gmt 0) |
@Brett_Tabke, please ensure that the line limit isn't too restrictive as someone may be helping by publishing a batch of code to solve a problem and having it on the post will make it easier for someone else to come and use that same batch of code at a later date. This feature would be a huge plus for the site!
|
JAB Creations

msg:4145848 | 7:42 pm on Jun 2, 2010 (gmt 0) |
The [ code ] BBcode should be visually separated from regular text as the [ quote ] BBcode is preferably with a slightly shaded background color and a border. Syntax highlighting is okay though I'd really appreciate it if my indenting was retained. Granted this is a double edged sword as I indent only one space keeping my code readable while people indent using tabs and multiple tabs at that! So I think replacing tabs with a single space would greatly reduce the clutter. function 1() { if (2) { if (3) { } } } I format function brackets to not be spaced however the first nested brackets I use a single space, the second two, third three, etc. - John
|
|