Posted: Fri Jan 05, 2007 10:24 am
This is awesome.Weirdan wrote:Stylish
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
This is awesome.Weirdan wrote:Stylish
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.
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 = '');
rofl!stylish wrote:User styles empower your browsing experience by letting you fix ugly sites
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;
}
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;
}
feyd wrote:I'm not sure I'm a fan of ... pastel.