What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » [code][/code] suggestion

Pages: (6): « First « 1 2 3 4 [ 5 ] 6 » Last »
[code][/code] suggestion
Author: Message:
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
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... :undecided:
[Image: msghelp.net.png]
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
Profile PM Web Find Quote Report
toddy
Veteran Member
*****

Avatar
kcus uoy

Posts: 2573
Reputation: 49
– / Male / Flag
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
Profile PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
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;
}
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
12-22-2008 04:15 AM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
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 :chrongue:
12-22-2008 05:10 AM
Profile PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
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 :chrongue:
I was about to request exactly the same thing. Yeah lou is totally right. Notepad++ colours ftw.q
Touch Innovation - touch friendly programs/applications for the windows mobile!


12-22-2008 10:15 AM
Profile E-Mail PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
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++:

[Image: zwischenablage01do9iq7.png]

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++:

[Image: zwischenablage01sm8.png]

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.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
12-22-2008 10:47 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
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 :p

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. :sad:
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,..." ? :p 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
Profile PM Web Find Quote Report
vaccination
Veteran Member
*****

Avatar

Posts: 2513
Reputation: 43
32 / Male / –
Joined: Apr 2005
RE: [code][/code] suggestion
What about the important lines on white backgrounds?:P

text code:
>>> omfg <<<

^^ kinda hard to see :P

This post was edited on 12-22-2008 at 07:55 PM by vaccination.
[Image: jumbled.png]
12-22-2008 07:54 PM
Profile PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
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
[Image: msghelp.net.png]
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
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
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. (a)
12-22-2008 08:08 PM
Profile PM Web Find Quote Report
Pages: (6): « First « 1 2 3 4 [ 5 ] 6 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On