PDA

Vollständige Version anzeigen : Script-Fu Definitionen für Notepad++


Eg
26.08.2005, 20:14
Hier im Forum wurde bereits auf den Notepad++ Editior hingewiesen (http://notepad-plus.sourceforge.net/). Ich habe mal versucht, einen ersten Wurf der Sprachdefinition für Script-Fu dazu zu erstellen. Insbesondere die erfassten Gimp-Prozeduren sind natürlich nicht vollständig, können aber beliebig erweitert werden, falls jemand dazu Lust und Zeit hat.

Die Datei heisst userDefineLang.xml und liegt (unter Windows XP) im Verzeichnis "%appdata%\Notepad++". Ich weiss leider nicht, ob man sie auch unter Linux mit Scintilla verwenden kann.

Viel Spass!
Martin


<NotepadPlus>
<UserLang name="Script-Fu" ext="scm">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">&quot;00&quot;00</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">( ) / + &lt; = &gt;</Keywords>
<Keywords name="Comment">1 2 0;</Keywords>
<Keywords name="Words1">define let* set! car cadr cond script-fu-register while</Keywords>
<Keywords name="Words2">gimp-image-set-component-active gimp-image-undo-group-start gimp-layer-copy gimp-layer-new gimp-image-width gimp-palette-get-foreground gimp-image-add-layer gimp-drawable-set-name gimp-desaturate gimp-channel-ops-duplicate gimp-image-set-active-layer gimp-edit-fill gimp-image-resize gimp-image-flatten gimp-palette-set-foreground gimp-rect-select gimp-drawable-fill plug-in-gauss plug-in-drawable-compose gimp-edit-paste gimp-image-get-layers gimp-levels gimp-levels-auto gimp-text-get-extents-fontname gimp-layer-create-mask gimp-convert-grayscale gimp-layer-set-mode gimp-layer-add-mask gimp-selection-all gimp-edit-copy plug-in-edge gimp-floating-sel-anchor gimp-invert gimp-image-merge-down gimp-image-remove-layer gimp-image-undo-group-end gimp-displays-flush gimp-image-height gimp-text-get-extents-fontname gimp-edit-clear gimp-text-fontname gimp-layer-create-mask gimp-brightness-contrast plug-in-colors-channel-mixer plug-in-scatter-rgb gimp-image-add-layer-mask gimp-selection-none gimp-layer-set-opacity plug-in-sel-gauss gimp-image-delete plug-in-despeckle plug-in-unsharp-mask gimp-image-duplicate plug-in-decompose gimp-image-undo-disable gimp-drawable-transform-scale gimp-image-resize-to-layers gimp-display-new gimp-image-undo-enable</Keywords>
<Keywords name="Words3">SF-IMAGE SF-DRAWABLE SF-STRING SF-FONT SF-ADJUSTMENT SF-COLOR SF-OPTION SF-TOGGLE</Keywords>
<Keywords name="Words4">CLIP-TO-IMAGE TRUE FALSE FOREGROUND-FILL ADD-WHITE-MASK COLOR-MODE RGBA-IMAGE PIXELS NORMAL-MODE HISTOGRAM-VALUE OVERLAY-MODE SCREEN-MODE BURN-MODE ADD-SELECTION-MASK CHANNEL-OP-REPLACE CHANNEL-OP-SUBTRACT RED-CHANNEL GREEN-CHANNEL BLUE-CHANNEL LIGHTEN-ONLY-MODE LAB DARKEN-ONLY-MODE ADDITION-MODE TRANSFORM-FORWARD INTERPOLATION-CUBIC</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="800040" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="1" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="2" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>

Kincaid
01.01.2010, 06:47
Bei mir gibts im Notepad++ Ordner keine userDefineLang.xml und wenn ich eine anlege (ja, es ist userDefineLang.xml und nicht userDefineLang.xml.txt ;) ) und den Code reinkopiere erscheint die Sprache nicht zur Auswahl. Meine Version ist die 5.6.4, hat sich da was geändert? In der Wiki von Notepad++ steht auch nur man soll einfach die Datei anlegen und den Text reinkopieren, klappt aber nicht, auch nicht mit den Sprachen die es dort zum Download gibt. Ich hab nichtmal ne userDefineLang.xml wenn ich in Notepad++ ne eigene Sprache anlege.