Hallo zusammen,
ich habe mir eben für Notepad++ ein simples Syntax Highlighting erstellt, für die STNE Script Engine.
Es sind alle Klassen drin und eine Hand voll von Funktionen. Werde es auch noch erweitern.
Anleitung:
- Den Code unten als xml File abspeichern
- In Notepad++ zu "Sprachen"-"Eigene Sprache definieren"
- Importieren und das xml auswählen
- Dialog schließen und "STNE" als Sprache auswählen
Code:
<NotepadPlus>
<UserLang name="STNE" ext="cs" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1">.</Keywords>
<Keywords name="Numbers, suffix2">.</Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1">( ) , ; . =</Keywords>
<Keywords name="Operators2">- + * / #</Keywords>
<Keywords name="Folders in code1, open">{</Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">}</Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">Var
If
Else
For
Class
Structure
Interface
Enum
As
OR
AND
NOT
Function
New
Return
While
Do
Switch
ElseIf
</Keywords>
<Keywords name="Keywords2">Log
PageLog
ScriptBase
Array
Boolean
Byte
Char
DictionaryEntry
ICollection
IComparer
IDictionary
IEnumerable
IEnumerator
IList
Date
Double
Enum
Short
Integer
Long
Math
Object
Random
String
CStr
CInt
bold
println</Keywords>
<Keywords name="Keywords3">EHtmlInputType
IGuiControl
IGuiControlCollection
CommandLineArgumentEntry
CommandLineArguments
CCollectionBase
CDefaultValueHashTable
CDelegate
CDictionaryBase
CEntryList
CIntegerComparer
CIntegerHashTable
CIntegerList
CKeyMustExistsHashTable
CObject
CObjectHashTable
CObjectList
CScriptGlobal
CSortedIntegerObjectList
CSortedListBase
CSortedObjectList
CSortedStringList
CSortedStringObjectList
CStringHashTable
CStringList
CStringObjectHashTable
ScriptStart
SPoint
CGuiControlHelper
CGuiEvent
CGuiEventFilter
CGuiEventFilterBase
CGuiEventFilterControl
CGuiEventFilterPage
CGuiEventFilterPageAction
CGuiEventFilterSubPage
CGuiEventOnGalaxyMapBeforeRender
CGuiEventOnInfoBarAfterCreate
CGuiEventOnPageBeforeCreateControls
CGuiEventOnPageBeforeExecuteAction
CGuiEventOnPageBeforeRender
CGuiEventOnTableAfterCreate
CGuiEventOnTableAfterHeadAdded
CGuiEventOnTableAfterRowAdded
CGuiEventOnTableBeforeCreate
CGuiPage
CGuiTableEvent
CImpersonationDelegate
CScriptContext
EAlertLevel
EAutoPilotType
EBeamResource
EGoodsType
EGuiControl 
EGuiEventType
ELRSNumericType
EShipDirection
EShipLogType
EShipType
ETorpedoType
EWarpcoreFillType
EGuiPage
CAccount
CAlliance
CBaseColonyManager
CBaseShip
CBaseShipManager
CBuilding
CBuildingList
CColony
CColonyEnumerator
CColonyField
CColonyFieldList
CColonyManager
CColonyMap
CControlBuilder
CCoordinateList
CDataNode
CDataNodeList
CDataNodeStorage
CEvent
CEventOnCreateControls
CEventOnCreateOptions
CEventOnCreatePage
CEventOnDoAction
CEventOnInit
CEventOnRegisterEvents
CFleetEnumerator
CGalaxyMap
CGalaxyMapItem
CGameUrl
CGlobalFunctions
CGoodsInfo
CGoodsInfoEnumerator
CGuiEvents
CHandle
CHtmlLagerListe
CHtmlStneButtonContainer
CJsAction
CMyColony
CMyFleet
CMyScript
CMyShip
CMyShipDefinition
CMyShipTick
CMyUser
CRandomNameGenerator
CRandomNumberGeneratorBase
CScript
CScriptEnumerator
CScriptUrl
CSector
CShip
CShipDefinition
CShipEnumerator
CShipList
CShipManager
CStockRoom
CStringBuilder
CTrueRandomNumberGenerator
CUrl
CUrlBuilder
CUser
CUserEnumerator
CUserList
CWebContext
CWebRequest
CWebResponse
CWebUrl
CWELL512RandomNumberGenerator
CXorShift128RandomNumberGenerator
EGalaxyMapItemType
EReplicatorGoods
Global
CControlTableCell
CHtmlAttributeCollection
CHtmlBig
CHtmlBreak
CHtmlCheckBox
CHtmlControl
CHtmlControlList
CHtmlControlWrapper
CHtmlDictionary
CHtmlDiv
CHtmlEventList
CHtmlFlash
CHtmlForm
CHtmlGalaxyMap
CHtmlGalaxyMapItem
CHtmlHelper
CHtmlHorizontalLine
CHtmlHyperLink
CHtmlImage
CHtmlInput
CHtmlLi
CHtmlLinkButton
CHtmlListBox
Class CHtmlListBoxItem
CHtmlListBoxItemCollection
CHtmlLiteral
CHtmlNewLine
CHtmlOl
CHtmlParagraph
CHtmlResetButton
CHtmlSeperator
CHtmlSmall
CHtmlSpace
CHtmlSpan
CHtmlStyleCollection
CHtmlSubmitButton
CHtmlTextArea
CHtmlTextBox
CHtmlUl
CTable
CTableCell
CTableCellCollection
CTableCellList
CTableRow
CTableRowCollection
CVirtualArray
Log
PageLog
ScriptBase
Server
SMap
SMapPosition
Response
DateTime
GuestShip
GuestUser
MyShip
Main
ScriptContext</Keywords>
<Keywords name="Keywords4">True
False</Keywords>
<Keywords name="Keywords5">Items
Item
Value
Add
table
AddRow
Request
ContainsKey
Form
Style
Cells
MyShip
MapPosition
CurrentColony
InOrbit
Coordinates
Coords
Buildings
Count
TypeName
Active
StockRoom
FreeStorage
Sum
Amount
DockedToShipID
ShipID
GetName
GetImage
GoodsType
CssClass
Type
Definition
IsSpaceStation
Detach
AllianceID
UserID
ItemByIndex
KeyByIndex
IsEmpty
Exists
HasChildren
Energy
Name
Abs
Height
GetHtmlName
Floor
Rename
FirstNode
Now
ToShortDateString
CurrentFleet
Next
Width
RowCount
Multiple
Hull
AlertLevel
Shields
Larne
ToShortTimeString
LastNode
Clear
Text
Action
TransferToShip
RegisterEvent
TableBeforeCreate
TableAfterRowAdded
LoadFromUser
Current
WriteAppLog
JsToggleElement
BracketLink
GuiControl
Page
Body
Controls
Insert
ID</Keywords>
<Keywords name="Keywords6"></Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00 01 02 03" 04\ 05" 06' 07\ 08' 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="65600" />
<WordsStyle name="DELIMITERS5" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="32800" />
<WordsStyle name="DELIMITERS6" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="3" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="333333" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
Viel Spaß damit!