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
Darkyhood
Apprentice
*

Posts: 36
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: NOTEPAD ++ Syntax Highlighting
I'm using Notepad++ v4.1.2 with SCP syntax, installation file can download from:
https://rapidshare.com/files/781178438/n...taller.exe
http://depositfiles.com/files/tbttgvn2b
05-05-2012 07:39 PM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #3
RE: NOTEPAD ++ Syntax Highlighting
some has it für ultraedit?
05-08-2012 12:10 AM
Find all posts by this user Like Post Quote this message in a reply
alexpetro
Apprentice
*

Posts: 14
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #4
RE: NOTEPAD ++ Syntax Highlighting
Here some words of sphere and markers for ultraedit, i used it several years ago, something could be changed or missed.

Some Comment are in Italian.

If is there someone that will improve this version, please repost it here.

-------



/L6"Sphere Script" Nocase Line Comment = // File Extensions = SCP TXT BAK
/Delimiters = <>()[]{}=,.& ! |+-*/ "
/Function String = "^{%[[]*]*$^}^{%//[*][*][*] *^}"
/Indent String = "if" "If" "IF" "elseif" "Elseif" "ElseIf" "ELSEIF"
/Unindent String = "endif" "Endif" "ENDIF"
/Marker Characters = "<>"
/C1"Nomi item"
area
class comment
defnames dialog
eof
id itemdef
function
map
nototitles
obscene
page profession
races regiontype regionresource resources room runes
sphere
starts
typedef
worlditem
/C2"Eventi"
on onbutton
@create
@dropon_ground
@equip
@itemequip @itempickup_ground @itempickup_pack @itemuserdclick
@login
@spelleffect @skillstart
@targon_char @targon_item
@unequip @click @dclick
/C3"Attributi"
account advance adurate age alchemy amount anatomy animallore archery armor armslore attr attr_newbie attr_magic
baseid begging blacksmithing bonusstart bonus_dex bonus_int bonus_str bowcraft button
camping carpentry cartography changer checkertrans chivalry cliloc coldblockchance color cooking
dam defname delay detectinghidden dex dir dupeitem dupelist dye
effect electricblockchance enticement EvaluatingIntel events
fencing fireblockchance fishing flip focus food forensics
gumppictiled
healing herding hiding hitpoints HITS
inscription int isevent itemid
key kills
layer new link lockpicking lumberjacking
macefighting magery magicresistance magicweap_prefix_armor mana meditation meleeblockchance message mining more more1 more2 morem morep morex morey morez musicianship
name necromancy newitem
objprop oskin
p parrying peacemaking poisoning prefixdes prefixdes_0 prefixdes_1 prefixname prefixstrength promptmsg provocation
radio rangeblockchance reap reapamount rect regen regen_hits regen_mana regen_stam regen_food regen_fame removetrap reqstr resizepic resources resources2
setlocation size skill skillmake skillsum snooping speed spellblockchance spiritspeak stat_dex stat_int stat_str statsum stealing stealth str swordsmanship
tactics tailoring taming tasteid tdata1 tdata2 tdata3 tdata4 test_stat text timer tinkering title tracking type twohands
unequip
value values VERSION veterinary
weight wrapx wrestling
/C4"Parole chiavi di Axis"
category
description
subsection
/C5"Sintassi"
= ==
& &&
!
| ||
(
)
[
]
act
cont
drop
else elseif emote endif
findid findlayer
if
noclose nomove
remove return
sfx src
tag targ target trigger
update
var
/C6"Marcatori"
<>
(This post was last modified: 06-21-2012 06:05 AM by alexpetro.)
06-21-2012 06:04 AM
Find all posts by this user Like Post Quote this message in a reply
alexpetro
Apprentice
*

Posts: 14
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #5
RE: NOTEPAD ++ Syntax Highlighting
I think that new versions of Notepad++ doesn't load the khaos Xml configuration. I will pleased if someone could export a new config.
(This post was last modified: 06-22-2012 06:08 AM by alexpetro.)
06-22-2012 06:08 AM
Find all posts by this user Like Post Quote this message in a reply
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #6
RE: NOTEPAD ++ Syntax Highlighting
(06-22-2012 06:08 AM)alexpetro Wrote:  I think that new versions of Notepad++ doesn't load the khaos Xml configuration. I will pleased if someone could export a new config.

The attached file extension is .scp format so I could upload it here, when you download it you must change its extension to .xml for this to work. So after you save the file to you desktop and rename its extension open NotePad++

In the new version of NotePad++ goto language in the command menu and select userdefined, then in the userdefined dialog import the attached XML file.

You may want to edit colors and fonts to suit.

EDIT ** and at the rest of the keywords I forgot to put in!


Attached File(s)
.scp  SphereSCP.scp (Size: 4.25 KB / Downloads: 77)
(This post was last modified: 07-09-2012 12:10 AM by Barnabus.)
07-09-2012 12:06 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Barnabus's post
Khayyn
Apprentice
*

Posts: 1
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Sep 2020
Reputation: 0



Post: #7
RE: NOTEPAD ++ Syntax Highlighting
(07-09-2012 12:06 AM)Barnabus Wrote:  
(06-22-2012 06:08 AM)alexpetro Wrote:  I think that new versions of Notepad++ doesn't load the khaos Xml configuration. I will pleased if someone could export a new config.

The attached file extension is .scp format so I could upload it here, when you download it you must change its extension to .xml for this to work. So after you save the file to you desktop and rename its extension open NotePad++

In the new version of NotePad++ goto language in the command menu and select userdefined, then in the userdefined dialog import the attached XML file.

You may want to edit colors and fonts to suit.

EDIT ** and at the rest of the keywords I forgot to put in!

Hi, do you mind reup the file? Thanks Big Grin
09-02-2020 10:03 AM
Find all posts by this user Like Post Quote this message in a reply
fwiffo
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2023
Reputation: 0



Post: #8
RE: NOTEPAD ++ Syntax Highlighting


big thanks for this great thing you've shared
10-10-2023 02:41 AM
Find all posts by this user Like Post Quote this message in a reply
LaboTec
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2023
Reputation: 0

Kelevar.cz

Post: #9
RE: NOTEPAD ++ Syntax Highlighting
Here is mine 2023 updated version (v6.1.23): https://github.com/LaboTec132/notepadpp-...in/v6.1.23
(This post was last modified: 11-20-2023 08:10 PM by LaboTec.)
11-20-2023 08:06 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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