The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NOTEPAD ++ Syntax Highlighting
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #1
NOTEPAD ++ Syntax Highlighting
Attn: Cem (Jeem)

This goes in stylers.xml
Code:
<LexerType name="spherescp" desc="Sphere SCP" ext="">
            <WordsStyle name="COMMENT LINE" styleID="1" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" fontSize="" />
            <WordsStyle name="COMMENT BLOCK" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" fontSize="" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVE" styleID="5" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="OPERATOR" styleID="6" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="TRIGGER" styleID="7" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" keywordClass="type2" />
            <WordsStyle name="SECTIONDEF" styleID="8" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" />
            <WordsStyle name="TEXT SECTIONS" styleID="0" keywordClass="fold1" />
            <WordsStyle name="DEFNAME" styleID="9" fgColor="0055FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="STRING" styleID="10" fgColor="006A00" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type4" />
            <WordsStyle name="RESERVED WORD" styleID="11" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" keywordClass="instre2" />
            <WordsStyle name="FUNCTION" styleID="12" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type1" />
            <WordsStyle name="REFERENCE" styleID="13" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type6" />
            <WordsStyle name="VARIABLE" styleID="14" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type3" />
            <WordsStyle name="USER DEFINED" styleID="15" fgColor="0055FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" keywordClass="type5">^t_ ^i_ ^c_ ^e_ ^f_ ^r_ ^d_ ^ad_ ^tm_ ^layer_ ^statf_ ^snd_ ^s_ ^spellflag_ ^can_ ^mt_ ^attr_ ^memory_ ^region_ ^random_ ^colors_ ^brain_ ^color_ ^midi_ ^noto_ ^loot_ ^match_</WordsStyle>
            <WordsStyle name="COMMON IDENTIFIER" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVED REFERENCE" styleID="17" fgColor="FF66FF" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVED VARIABLE" styleID="18" fgColor="AF6F03" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVED USER DEFINED" styleID="19" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVED COMMON IDENTIFIER" styleID="20" fgColor="5F5F5F" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="RESOLVED NUMBER" styleID="21" fgColor="FF5151" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
            <WordsStyle name="UNKNOWN (CUSTOM) TRIGGER" styleID="22" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="" />
            <WordsStyle name="ERROR" styleID="23" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="6" fontSize="" />
        </LexerType>


This goes in langs.xml
Code:
<Language name="spherescp" ext="scp" commentLine="//">
            <Keywords name="instre1">account advance area blockemail blockip book chardef comment crystalball defname dialog economy emailmsg events function gmpage help itemdef location map menu moongates names newbie nototitles obscene plevel plotitem quest raceclass regionresource regiontype resources room runes schedule scroll sector server servers skill skillclass skillmenu spawn speech spell sphere starts stat teleporters template tip typedef typedefs webpage worldchar worlditem text button</Keywords>
            <Keywords name="instre2">begin dorand doswitch elif else elseif end enddo endfor endif endrand for if return ^on</Keywords>
            <Keywords name="type1">eval hval isbit listcol qval rand randbell strascii strchar strcharat strcmp strcmpi strfirstcap strindexof strleft strlen strmatch strmid strright strtolower strtoupper valstr</Keywords>
            <Keywords name="type2">abort click cliperiodic create damage dclick death destroy dropon_char dropon_ground dropon_item enter environchange equip exit fail fearofdeath fightswing gethit hit hitmiss hittry itemclick itemdamage itemdclick itemdropon_char itemdropon_ground itemdropon_item itemequip itempickup_ground itempickup_pack itemspell itemstackon itemstep itemtargon_char itemtargon_ground itemtargon_item itemtooltip itemunequip load login logout npcacceptitem npcheargreeting npchearneed npchearunknown npcrefuseitem npcrestock npcseenewplayer npcseewantitem personalspace pickup_ground pickup_pack profile receiveitem regperiodic select skillabort skillfail skillselect skillstart skillstroke skillsuccess spellcast spelleffect spelleffect stackon start step stroke success targon_char targon_ground targon_item timer tooltip unequip</Keywords>
            <Keywords name="type3">tag var</Keywords>
            <Keywords name="type4">name message sysmessage say sayu sayua speak speaku speakua category subsection description emote</Keywords>
            <Keywords name="type5" />
            <Keywords name="type6">account act argo char cont findcont findequip findid findlayer findtype gmpagep i link memoryfind memoryfindtype region sector serv src t targ target targprop targprv topobj tprop tprv typedef uid account advance area blockemail blockip book chardef comment crystalball defname dialog economy emailmsg events function gmpage help itemdef location map menu moongates names newbie nototitles obscene plevel plotitem quest raceclass regionresource regiontype resources room runes schedule scroll sector server servers skill skillclass skillmenu spawn speech spell sphere starts stat teleporters template tip typedef typedefs webpage worldchar worlditem</Keywords>
            <Keywords name="fold1">blockemail blockip book crystalball emailmsg gmpage help names nototitles obscene runes scroll tip text</Keywords>
        </Language>
05-05-2012 05:28 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NOTEPAD ++ Syntax Highlighting - Khaos - 05-05-2012 05:28 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)