[code][/code] suggestion |
Author: |
Message: |
Lou
Veteran Member
Posts: 2475 Reputation: 43
– / /
Joined: Aug 2004
|
RE: [code][/code] suggestion
php code: <?php
//Testing
function just_a($test) {
/*
Commenting block!!!!
Woot!
*/
print $test;
>>>echo $test;<<<
}
?>
I'm kind of used to having the php tags in red, comments in green. Perhaps a colour scheme similar to that used by Notepad++? I think it's more appealing. Perhaps it's just me though...
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
|
|
12-22-2008 03:05 AM |
|
|
toddy
Veteran Member
kcus uoy
Posts: 2573 Reputation: 49
– / /
Joined: Jun 2004
|
RE: [code][/code] suggestion
quote: Originally posted by .Lou
Perhaps it's just me though
i think wdz should use the random color on load, that he post (in the spambox iirc) before
|
|
12-22-2008 03:25 AM |
|
|
MeEtc
Patchou's look-alike
In the Shadow Gallery once again
Posts: 2200 Reputation: 60
38 / /
Joined: Nov 2004
Status: Away
|
RE: [code][/code] suggestion
The colour for PHP keywords is hard to read, some light orange
php code: if (true){
foreach($key as $value)
$class->function($value)
}else{
return;
}
I cannot hear you. There is a banana in my ear.
|
|
12-22-2008 04:15 AM |
|
|
ryxdp
Senior Member
Posts: 804 Reputation: 16
29 / /
Joined: Jun 2006
|
RE: RE: [code][/code] suggestion
quote: Originally posted by .Lou
Perhaps a colour scheme similar to that used by Notepad++? I think it's more appealing.
Seconded
|
|
12-22-2008 05:10 AM |
|
|
Nathan
Veteran Member
Yeah, "large dimensions" ;)
Posts: 2984 Reputation: 76
– / /
Joined: Apr 2005
|
RE: [code][/code] suggestion
quote: Originally posted by ryxdp
quote: Originally posted by .Lou
Perhaps a colour scheme similar to that used by Notepad++? I think it's more appealing.
Seconded
I was about to request exactly the same thing. Yeah lou is totally right. Notepad++ colours ftw.q
|
|
12-22-2008 10:15 AM |
|
|
mynetx
Skinning Contest Winner
Microsoft insider
Posts: 1175 Reputation: 33
37 / /
Joined: Jul 2007
|
RE: [code][/code] suggestion
I vote for Notepad++ as well, except for the \r \n highlighting, which is better in WDZ version.
jscript code: // Some random code posted by matty :p
function ReadFile(File) {
var oLineArray = new Array();
var oFile = FileSys.OpenTextFile(File, 1 /* ForReading */, false);
while (!oFile.AtEndOfStream) oLineArray.push(oFile.ReadLine());
return oLineArray;
}
Notepad++:
php code: <?php
// Some random code posted by mynetx :p
function post($strUrl, $strQuery) {
$strQuery = utf8_encode($strQuery);
$resFp = fsockopen(REMOTE_HOST, 80);
fwrite($resFp,
'POST '.$strUrl." HTTP/1.1\r\nHost: ".REMOTE_HOST."\r\n".
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8\r\n".
"Cookie: PHPSESSID=".SID."\r\n".
'Content-Length: '.strlen($strQuery)."\r\nConnection: Close\r\n\r\n".$strQuery);
$strReply = '';
while(!feof($resFp))
$strReply .= fread($resFp, 1024);
fclose($resFp);
$intBody = strpos($strReply, "\r\n\r\n");
if(!$intBody)
$intBody = strlen($strReply);
$strHeaders = substr($strReply, 0, $intBody);
$strBody = substr($strReply, $intBody + 4);
if(stristr($strHeaders, 'Transfer-Encoding: chunked')) {
$strBody = decode_chunked($strBody);
}
return $strBody;
}
$strText = <<< SOME_TEST
Breaking News:
WDZ is working on the forums again.
SOME_TEST;
?>
Notepad++:
By the way: quote: Originally posted by http://de.php.net/types.string#language.types.string.syntax.heredoc
Also, the identifier must follow the same naming rules as any other label in PHP: it must contain only alphanumeric characters and underscores, and must start with a non-digit character or underscore.
|
|
12-22-2008 10:47 AM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: [code][/code] suggestion
quote: Originally posted by toddy
i think wdz should use the random color on load, that he post (in the spambox iirc) before
Hmm, I could add that in as an easter egg... [code=random] or something
quote: Originally posted by mynetx
I vote for Notepad++ as well, except for the \r \n highlighting, which is better in WDZ version.
It's not mine at all, it's GeSHi with 100% default colors. I've been looking for a custom GeSHi color scheme I can steal, but I haven't had any luck yet. I looked at MediaWiki and DokuWiki and they're both using the ugly orange-ish keywords and gray comments.
There's talk of some improvements being made to the colors on Wikipedia, but apparently nobody has done the work yet.
quote: Originally posted by http://en.wikipedia.org/wiki/MediaWiki:Geshi.css
This css will override styles used by the GeSHi syntax highlighting, such that less awful colors for the highlighting can be chosen.
quote: Originally posted by andrey (in the spambox)
huh "supported languages ..., text,..." ? never heard of that weird programming language
That just allows you to get GeSHi formatting without syntax highlighting:
text code: text code!
indented 1
indented 2
indented 3
>>>very important line :o<<<
|
|
12-22-2008 07:44 PM |
|
|
vaccination
Veteran Member
Posts: 2513 Reputation: 43
32 / / –
Joined: Apr 2005
|
RE: [code][/code] suggestion
What about the important lines on white backgrounds?
text code: >>> omfg <<<
^^ kinda hard to see
This post was edited on 12-22-2008 at 07:55 PM by vaccination.
|
|
12-22-2008 07:54 PM |
|
|
Lou
Veteran Member
Posts: 2475 Reputation: 43
– / /
Joined: Aug 2004
|
RE: [code][/code] suggestion
quote: Originally posted by WDZ
It's not mine at all, it's GeSHi with 100% default colors. I've been looking for a custom GeSHi color scheme I can steal, but I haven't had any luck yet.
Can't you edit the css file yourself? ;o
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
|
|
12-22-2008 07:57 PM |
|
|
WDZ
Former Admin
Posts: 7106 Reputation: 107
– / /
Joined: Mar 2002
|
RE: [code][/code] suggestion
quote: Originally posted by .Lou
Can't you edit the css file yourself? ;o
Of course, but there are lots of colors (I count 17 for PHP), and I'm not a web designer, so I don't want to do that work unless I have to.
|
|
12-22-2008 08:08 PM |
|
|
Pages: (6):
« First
«
1
2
3
4
[ 5 ]
6
»
Last »
|
|