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

[code][/code] suggestion
Author: Message:
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
36 / 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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[code][/code] suggestion - by matty on 07-24-2008 at 01:21 PM
RE: [code][/code] suggestion - by John Anderton on 07-24-2008 at 02:17 PM
RE: [code][/code] suggestion - by Spunky on 07-24-2008 at 02:21 PM
RE: [code][/code] suggestion - by Nathan on 07-24-2008 at 03:03 PM
RE: RE: [code][/code] suggestion - by Vilkku on 07-24-2008 at 08:14 PM
RE: [code][/code] suggestion - by aNILEator on 07-24-2008 at 04:15 PM
RE: [code][/code] suggestion - by Spunky on 07-24-2008 at 05:08 PM
RE: [code][/code] suggestion - by joey on 07-24-2008 at 05:59 PM
RE: [code][/code] suggestion - by vaccination on 07-24-2008 at 08:34 PM
RE: [code][/code] suggestion - by Nathan on 07-24-2008 at 09:36 PM
RE: [code][/code] suggestion - by vaccination on 07-24-2008 at 09:45 PM
RE: [code][/code] suggestion - by Lou on 07-24-2008 at 11:33 PM
RE: [code][/code] suggestion - by Eljay on 07-25-2008 at 12:04 AM
RE: [code][/code] suggestion - by Adeptus on 07-25-2008 at 07:01 AM
RE: [code][/code] suggestion - by vaccination on 07-25-2008 at 07:51 AM
RE: [code][/code] suggestion - by CookieRevised on 07-25-2008 at 10:45 AM
RE: [code][/code] suggestion - by Felu on 07-25-2008 at 11:38 AM
RE: [code][/code] suggestion - by Thor on 07-25-2008 at 11:42 AM
RE: RE: [code][/code] suggestion - by Vilkku on 07-25-2008 at 11:45 AM
RE: [code][/code] suggestion - by Eljay on 07-25-2008 at 11:47 AM
RE: [code][/code] suggestion - by Felu on 07-25-2008 at 11:51 AM
RE: [code][/code] suggestion - by John Anderton on 07-25-2008 at 01:15 PM
RE: [code][/code] suggestion - by andrewdodd13 on 07-25-2008 at 04:00 PM
RE: [code][/code] suggestion - by CookieRevised on 07-26-2008 at 03:37 PM
RE: [code][/code] suggestion - by matty on 07-26-2008 at 03:47 PM
RE: [code][/code] suggestion - by mattisdada on 07-29-2008 at 07:21 AM
RE: [code][/code] suggestion - by Chrono on 07-29-2008 at 11:22 AM
RE: [code][/code] suggestion - by NanaFreak on 07-29-2008 at 11:41 AM
RE: RE: [code][/code] suggestion - by Vilkku on 07-29-2008 at 12:35 PM
RE: [code][/code] suggestion - by matty on 07-29-2008 at 12:53 PM
RE: [code][/code] suggestion - by L. Coyote on 07-29-2008 at 02:23 PM
RE: [code][/code] suggestion - by ShawnZ on 07-29-2008 at 02:39 PM
RE: [code][/code] suggestion - by L. Coyote on 07-29-2008 at 02:55 PM
RE: [code][/code] suggestion - by Menthix on 07-29-2008 at 03:02 PM
RE: [code][/code] suggestion - by L. Coyote on 07-29-2008 at 03:07 PM
RE: [code][/code] suggestion - by ShawnZ on 07-29-2008 at 03:07 PM
RE: [code][/code] suggestion - by WDZ on 07-30-2008 at 04:25 AM
RE: [code][/code] suggestion - by warmth on 07-31-2008 at 02:26 AM
RE: RE: [code][/code] suggestion - by WDZ on 12-22-2008 at 01:04 AM
RE: [code][/code] suggestion - by warmth on 12-22-2008 at 01:18 AM
RE: [code][/code] suggestion - by Lou on 12-22-2008 at 03:05 AM
RE: RE: [code][/code] suggestion - by ryxdp on 12-22-2008 at 05:10 AM
RE: [code][/code] suggestion - by toddy on 12-22-2008 at 03:25 AM
RE: [code][/code] suggestion - by MeEtc on 12-22-2008 at 04:15 AM
RE: [code][/code] suggestion - by Nathan on 12-22-2008 at 10:15 AM
RE: [code][/code] suggestion - by mynetx on 12-22-2008 at 10:47 AM
RE: [code][/code] suggestion - by WDZ on 12-22-2008 at 07:44 PM
RE: [code][/code] suggestion - by vaccination on 12-22-2008 at 07:54 PM
RE: [code][/code] suggestion - by Lou on 12-22-2008 at 07:57 PM
RE: [code][/code] suggestion - by WDZ on 12-22-2008 at 08:08 PM
RE: [code][/code] suggestion - by Lou on 12-22-2008 at 08:25 PM
RE: [code][/code] suggestion - by WDZ on 12-22-2008 at 08:51 PM
RE: [code][/code] suggestion - by ryxdp on 12-22-2008 at 10:53 PM
RE: [code][/code] suggestion - by Lou on 12-22-2008 at 11:16 PM
RE: [code][/code] suggestion - by matty on 12-08-2009 at 04:41 PM
RE: [code][/code] suggestion - by Chrono on 12-15-2009 at 12:05 AM
RE: [code][/code] suggestion - by matty on 12-15-2009 at 01:31 AM
RE: [code][/code] suggestion - by prashker on 12-15-2009 at 04:01 AM
RE: [code][/code] suggestion - by matty on 12-15-2009 at 02:22 PM


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