homepage Welcome to WebmasterWorld Guest from 54.237.38.30
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld Feedback Forums / WebmasterWorld Feedback Days
Forum Library, Charter, Moderators: brett tabke

WebmasterWorld Feedback Days Forum

  posting off  
Better Code view
syntax highlighting
quixotic

5+ Year Member



 
Msg#: 4139021 posted 7:38 pm on May 25, 2010 (gmt 0)

Be nice to have a better code view. There are several opensource mods to do this. I've got one installed on my wordpress blog, and I love it.

I like the syntax highlighting and line numbering. It makes the code more readable, can immediately show syntactical errors, and it's easier to say to a poster things like "line 3 should be...". Many also have a nifty javascripting goodies to do things like turn on/off line numbering or copy code.

 

httpwebwitch

WebmasterWorld Administrator httpwebwitch us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4139021 posted 7:44 pm on May 25, 2010 (gmt 0)

yes yes yes yes yes!

Fotiman

WebmasterWorld Senior Member fotiman us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4139021 posted 7:50 pm on May 25, 2010 (gmt 0)

Great suggestion!

quixotic

5+ Year Member



 
Msg#: 4139021 posted 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

5+ Year Member



 
Msg#: 4139021 posted 9:20 pm on May 25, 2010 (gmt 0)

Yes, this would be great!

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4139021 posted 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

5+ Year Member



 
Msg#: 4139021 posted 9:41 pm on May 25, 2010 (gmt 0)

Excellent! Looks like it can do most languages to boot...

alt131

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4139021 posted 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#: 4139021 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4139021 posted 1:01 pm on May 26, 2010 (gmt 0)

Yes, this would be very helpful.

alias

10+ Year Member



 
Msg#: 4139021 posted 2:44 pm on May 26, 2010 (gmt 0)

that would be one of the biggest improvements to this forum.

MatthewHSE

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4139021 posted 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

10+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4139021 posted 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

5+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4139021 posted 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

5+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4139021 posted 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

5+ Year Member



 
Msg#: 4139021 posted 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

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4139021 posted 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld Feedback Forums / WebmasterWorld Feedback Days
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved