This is awesome.Weirdan wrote:Stylish
Italic comment color
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Same here. Bold is okay provided it doesn't affect the dimensional requirements for the font thereby screwing up alignment, but other then that, colors only for myself personally.d11wtq wrote:I voted for the change the day this thread appearedI don't like italics (or underscores for that matter) in mono-spaced code.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
In my personal settings I often use a light gray (or green) for comments so they blend into the white background a bit.Maugrim_The_Reaper wrote:I don't really mind the lighter colouring, mainly because it lets the code stand out more - darker comments might actually reduce that level of readability.
edit: I should note I'm not advocating changing all the colors, I just added more for some contrast.possible example wrote:/**
* Open a stream
* \param[in] aDescriptor Supply a description that will allow the
* stream to be opened. What that specifically
* is will depend on the particular
* implementation.
* \note Default value is an empty string.
* \returns void
*/
public function Open($aDescriptor = '');
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I don't mind the orange for comments. Right now I use orange for single line comments and light gray for multi-line comments (in Eclipse). In notepad++ I use orange and green. just about any light colored, non obtrusive color that is not part of the 'action' colors is OK with me. But getting rid of the italics is a good way to go and would advocate that immediately.
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Thought it would be useful to have a visual comparison:
Current style:
New style?
Current style:
Code: Select all
// php-defined functions are red
$row = MySQL_fetch_assoc($result);
$quoted_text = 'hot pink, baby!';
// user functions are whatever this color is:
function userFunction($arg1=NULL,$arg2='bob'){
$someVar = $arg1?$arg1:$arg2;
if($something){
// do something
}else(
// don't
// control structures are blue
return(false);
)
foreach($something as $key => $val){
/*
iterate
the
array
*/
}
echo '<a href="#">all done here, '.$username.'</a>';
exit;
}I wish I could simulate proper indenting (which I'd personally like to see reduced a little) Let me know what you guys think?// php-defined functions are red
$row = MySQL_fetch_assoc($result);
$quoted_text = 'hot pink, baby!';
// user functions are whatever this color is:
function userFunction($arg1=NULL,$arg2='bob'){
$someVar = $arg1?$arg1:$arg2;
if($something){
// do something
}else(
// don't
// control structures are blue
return(false);
)
foreach($something as $key => $val){
/*
iterate
the
array
*/
}
echo '<a href="#">all done here, '.$username.'</a>';
exit;
}
Last edited by Kieran Huggins on Wed Jan 10, 2007 1:09 pm, edited 4 times in total.
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
I'm not sure I'm a fan of ... pastel.Kieran Huggins wrote:New style?I wish I could simulate proper indenting (which I'd personally like to see reduced a little) Let me know what you guys think?// php-defined functions are red
$row = MySQL_fetch_assoc($result);
$quoted_text = 'hot pink, baby!';
// user functions are whatever this color is:
function userFunction($arg1=NULL,$arg2='bob'){
$someVar = $arg1?$arg1:$arg2;
if($something){
// do something
}else(
// don't
// control structures are blue
return(false);
)
foreach($something as $key => $val){
/*
iterate
the
array
*/
}
echo '<a href="#">all done here, '.$username.'</a>';
exit;
}
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact: