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

Pages: (6): « First « 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
Stick it here, I'm sure someone will grab the notepad++ colours and edit it for you. :P
[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 08:25 PM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [code][/code] suggestion
CSS code:
/* keywords */
.geshi_code.php .kw1 {color: #b1b100;} /* language constructs (require, foreach, return) */
.geshi_code.php .kw2 {color: #000000; font-weight: bold;} /* constants */
.geshi_code.php .kw3 {color: #990000;} /* functions */
/* comments */
.geshi_code.php .co1 {color: #666666; font-style: italic;} /* single-line starting with "//" */
.geshi_code.php .co2 {color: #666666; font-style: italic;} /* single-line starting with "#" */
.geshi_code.php .co3 {color: #0000cc; font-style: italic;} /* heredoc and nowdoc */
.geshi_code.php .co4 {color: #009933; font-style: italic;} /* phpdoc */
.geshi_code.php .coMULTI {color: #666666; font-style: italic;} /* multi-line */
/* string escape sequences */
.geshi_code.php .es0 {color: #000099; font-weight: bold;}
.geshi_code.php .es1 {color: #000099; font-weight: bold;} /* simple single-char (\r\n\t) */
.geshi_code.php .es2 {color: #660099; font-weight: bold;} /* hexadecimal notation (\xAF) */
.geshi_code.php .es3 {color: #660099; font-weight: bold;} /* octal notation (\123) */
.geshi_code.php .es4 {color: #006699; font-weight: bold;} /* variables */
.geshi_code.php .es5 {color: #006699; font-weight: bold; font-style: italic;} /* cascaded variables */
.geshi_code.php .es6 {color: #009933; font-weight: bold;} /* format strings */
.geshi_code.php .es_h {color: #000099; font-weight: bold;}
/* brackets */
.geshi_code.php .br0 {color: #009900;}
/* symbols */
.geshi_code.php .sy0 {color: #339933;}
/* strings */
.geshi_code.php .st0 {color: #0000ff;}
.geshi_code.php .st_h {color: #0000ff;}
/* numbers */
.geshi_code.php .nu0 {color: #cc66cc;} /* integers */
.geshi_code.php .nu8 {color: #208080;} /* octal (0777) */
.geshi_code.php .nu12 {color: #208080;} /* hex (0xAF) */
.geshi_code.php .nu19 {color:#800080;} /* floating-point */
/* methods */
.geshi_code.php .me1 {color: #004000;}
.geshi_code.php .me2 {color: #004000;}
/* variables */
.geshi_code.php .re0 {color: #000088;}

That's just for PHP; each language has its own styles, and the class names used can vary.

BTW, when I said 17, I meant unique colors. You could have 27 different colors, but that's probably overkill. =p

I tried to comment the CSS with descriptions of what each class is for, but even I don't understand some of it. :p

This post was edited on 12-22-2008 at 10:02 PM by WDZ.
12-22-2008 08:51 PM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
29 / Male / Flag
Joined: Jun 2006
RE: [code][/code] suggestion
Well, the notepad++ colours can be found in %ProgramFiles%\Notepad++\stylers.xml. I'd try doing the CSS myself but I've got pretty much no idea as to what everything is :P

This post was edited on 12-22-2008 at 11:50 PM by ryxdp.
12-22-2008 10:53 PM
Profile PM Find Quote Report
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: [code][/code] suggestion
That's the php styles from Notepad++. Geshi's seems to be a bit more detailed (more colours and stuff).  Good luck :P.
XML code:
<LexerType name="php" desc="php" ext="">
            <WordsStyle name="QUESTION MARK" styleID="18" fgColor="FF0000" bgColor="FDF8E3" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="DEFAULT" styleID="118" fgColor="000000" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="STRING" styleID="119" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="STRING VARIABLE" styleID="126" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="1" fontSize="" />
            <WordsStyle name="SIMPLESTRING" styleID="120" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="WORD" styleID="121" fgColor="0000FF" bgColor="FEFCF5" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" />
            <WordsStyle name="NUMBER" styleID="122" fgColor="FF8000" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="VARIABLE" styleID="123" fgColor="000080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="COMMENT" styleID="124" fgColor="008000" bgColor="FEFCF5" fontName="Comic Sans MS" fontStyle="0" fontSize="8" />
            <WordsStyle name="COMMENTLINE" styleID="125" fgColor="008000" bgColor="FEFCF5" fontName="Comic Sans MS" fontStyle="0" fontSize="8" />
            <WordsStyle name="OPERATOR" styleID="127" fgColor="8000FF" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
        </LexerType>

[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 11:16 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: [code][/code] suggestion
Hate to bring up an old thread.

But the suggestion is for the code block. Can you make the code blocks collapsable and collapsed by default if they are greater than X number of lines?

For instance collapse to show the first 15 or 20 than expand to show the rest.
12-08-2009 04:41 PM
Profile E-Mail PM Find Quote Report
Chrono
forum admin
*******

Avatar
;o

Posts: 6022
Reputation: 116
39 / Male / Flag
Joined: Apr 2002
Status: Away
RE: [code][/code] suggestion
Spoiler:
or make it like a spoiler?
[Image: wdz_discrate.png]
12-15-2009 12:05 AM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: [code][/code] suggestion
Not quite what I was going for. I think showing a preview of the code would be better.
12-15-2009 01:31 AM
Profile E-Mail PM Find Quote Report
prashker
Veteran Member
*****


Posts: 5109
Reputation: 104
– / Male / –
Joined: Mar 2005
Status: Away
RE: [code][/code] suggestion
quote:
Originally posted by matty
Not quite what I was going for. I think showing a preview of the code would be better.
errr?

XML code:
<LexerType name="php" desc="php" ext="">
            <WordsStyle name="QUESTION MARK" styleID="18" fgColor="FF0000" bgColor="FDF8E3" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="DEFAULT" styleID="118" fgColor="000000" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="STRING" styleID="119" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="STRING VARIABLE" styleID="126" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="1" fontSize="" />
            <WordsStyle name="SIMPLESTRING" styleID="120" fgColor="808080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="WORD" styleID="121" fgColor="0000FF" bgColor="FEFCF5" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" />
            <WordsStyle name="NUMBER" styleID="122" fgColor="FF8000" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />

Spoiler:

XML code:
            <WordsStyle name="VARIABLE" styleID="123" fgColor="000080" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="COMMENT" styleID="124" fgColor="008000" bgColor="FEFCF5" fontName="Comic Sans MS" fontStyle="0" fontSize="8" />
            <WordsStyle name="COMMENTLINE" styleID="125" fgColor="008000" bgColor="FEFCF5" fontName="Comic Sans MS" fontStyle="0" fontSize="8" />
            <WordsStyle name="OPERATOR" styleID="127" fgColor="8000FF" bgColor="FEFCF5" fontName="" fontStyle="0" fontSize="" />
        </LexerType>

12-15-2009 04:01 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: [code][/code] suggestion
That just looks too messy.
12-15-2009 02:22 PM
Profile E-Mail PM Find Quote Report
Pages: (6): « First « 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