Syntaxhervorhebung mit UltraEdit

Einrichtung, Anschluss und Programmierung der HomeMatic CCU

Moderator: Co-Administratoren

Benutzeravatar
Dragonfly
Beiträge: 1249
Registriert: 04.01.2010, 11:40
Wohnort: Tyrol
Hat sich bedankt: 1 Mal
Danksagung erhalten: 4 Mal
Kontaktdaten:

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von Dragonfly » 18.05.2012, 07:38

Ich verwende http://www.pspad.com/de/.
Gibt es sogar in einer portable Version.

LG Tom

dwm
Beiträge: 207
Registriert: 10.08.2010, 21:56

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von dwm » 18.05.2012, 11:43

Danke erst mal für die Funktionalität mit UltraEdit ... wirklich eine Hilfe!

1000x
Werner
194 Kanäle in 101 Geräten:
3x HM-LC-Sw1-Pl, 7x HM-LC-Sw1-PB-FM, 2x HM-WDS10-TH-O, 22x HM-Sec-SC, 4x HM-Sec-MDIR, 4x HM-Sen-MDIR-O, 3x HM-LC-Dim1T-FM, 1x HM-PB-4Dis-WM, 1x HM-RC-19, 1x HM-Sec-TiS, 2x HM-OU-CF-Pl, 1x HM-RC-4-B, 9x HM-CC-VD, 7x HM-CC-TC, 3x HM-WDS30-T-O, 1x HM-CCU-1, 1x HM-LC-Sw2-PB-FM, 1x HM-LC-Sw1PBU-FM, 6x HM-PB-2-WM, 1x HM-LC-Dim2T-SM, 5x HM-PB-4-WM, 1x HM-LC-Sw2-FM, 1x HM-OU-CFM-Pl, 1x HM-LC-Bl1PBU-FM, 4x HM-LC-Bl1-PB-FM, 4x HM-LC-Sw4-SM, 3x HM-Sec-WDS

Benutzeravatar
anli
Beiträge: 4326
Registriert: 10.06.2009, 14:01
Wohnort: 20 Min. nördlich von Hannover und bei Bremen
Hat sich bedankt: 1 Mal
Danksagung erhalten: 23 Mal
Kontaktdaten:

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von anli » 09.06.2012, 17:03

Danke!
Herzliche Grüße, anli

Alle Angaben ohne Gewähr und Haftung meinerseits. Verwendung der von mir zur Verfügung gestellten Downloads auf eigene Gefahr. Ich bitte um Verständnis, dass ich aus zeitlichen Gründen keine unaufgeforderte Hilfestellung per PN/Mail geben kann. Bitte allgemeine Fragen ins Forum stellen, hier können viele fähige User viel schneller helfen.

Homematic-Manager v2: einfaches Tool zum Erstellen von Direktverknüpfungen und Bearbeiten von Gerätenamen, -parametern etc. für Homematic und HomematicIP (Alternative diesbzgl. zur WebUI)

Einsteiger-Hilfeerweiterter Skript-Parser

mtj
Beiträge: 1
Registriert: 24.06.2012, 12:17

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von mtj » 24.06.2012, 12:35

Da UltraEdit mir doch etwas zu teuer war, habe ich mir Notepad++ mal angesehen. Und dank der wunderbaren Vorarbeit von HomeMaster war es nicht schwer, eine entsprechende Syntaxdatei für Notepad++ anzulegen:

Code: Alles auswählen

<NotepadPlus>
    <UserLang name="HomeMaticScript" ext="hms">
        <Settings>
            <Global caseIgnored="no" />
            <TreatAsSymbol comment="no" commentLine="no" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">"00"00</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">- # & ( ) * . / ; [ ] { | } + < = ></Keywords>
            <Keywords name="Comment">1 2 0! 0</Keywords>
            <Keywords name="Words1">else false foreach if true while WriteLine quit</Keywords>
            <Keywords name="Words2">boolean integer real string time var object</Keywords>
            <Keywords name="Words3">Address Channel Channels ChnGroupPartnerId ChnDirection ChnAESActive ChnArchive ChnRoom ChnFunction Count Date Device DPs DPByHssDP Exec EnumUsedIDs EnumUsedNames Get GetAt GetObject GetVar Find Format ID IsTypeOf IsVar Interface HssType LastValue Length Name Operations ProgramExecute Split State StrValueByIndex Substr Timestamp ToFloat ToInteger ToString ToTime Type TypeName Value ValueType Variable VarType</Keywords>
            <Keywords name="Words4">OT_OBJECT OT_ENUM OT_DEVICE OT_CHANNEL OT_DP OT_VARDP $this$ $src$ OPERATION_READ OPERATION_WRITE OPERATION_EVENT</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="000000" bgColor="C0C0C0" fontName="" fontStyle="0" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="800040" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <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>
Den oben stehenden Code einfach in eine Textdatei (z.B. "HomeMaticScript.xml") kopieren. Dann in Notepad++ im Menü Ansicht/Benutzerdefinierte Sprache... auswählen, dort auf Importieren klicken und die Textdatei auswählen. Textdateien mit der Endung .hms werden nun automatisch mit der entsprechenden farbigen Markierung versehen.

HTH

Lueghi
Beiträge: 630
Registriert: 01.11.2007, 21:45
System: Alternative CCU (auf Basis OCCU)
Wohnort: Siebengebirge (bei Bonn)
Hat sich bedankt: 18 Mal
Danksagung erhalten: 2 Mal

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von Lueghi » 24.06.2012, 18:40

mtj hat geschrieben:Da UltraEdit mir doch etwas zu teuer war, habe ich mir Notepad++ mal angesehen. Und dank der wunderbaren Vorarbeit von HomeMaster war es nicht schwer, eine entsprechende Syntaxdatei für Notepad++ anzulegen:
...
DANKE.
Gruß Stefan

klassisch
Beiträge: 3974
Registriert: 24.03.2011, 04:32
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 110 Mal
Danksagung erhalten: 70 Mal

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von klassisch » 24.06.2012, 21:04

Auch von mir einen Dank an Euch zwei!

BxA
Beiträge: 167
Registriert: 15.03.2012, 17:34

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von BxA » 25.06.2012, 15:57

Da schließe ich mich an - vielen Dank!!!
Homematic System im Aufbau...
317 Kanäle in 45 Geräten:
2x HM-Sec-SC, 7x HM-CC-VD, 7x HM-CC-TC, 1x HM-EM-CCM, 14x HMW-IO-12-Sw7-DR, 1x HM-RC-Key3-B, 1x HM-Sec-Key, 8x HMW-LC-Bl1-DR, 1x HM-Sec-TiS, 1x HM-WDS100-C6-O, 1x HM-LC-Sw4-WM, 1x HM-CCU-1

PaulG4H
Beiträge: 1184
Registriert: 11.08.2011, 10:09

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von PaulG4H » 29.06.2012, 09:33

Perfekt! Vielen Dank!
Apache Reverse Proxy fuer sicheren Zugriff auf die CCU von Unterwegs
Zeitgesteuertes LXCCU / CCU2 Backup damit es immer eine Aktuelle Sicherung gibt!
Diverse weitere Anleitungen für CCU / LXCCU / Raspberry PI

Holzy
Beiträge: 3
Registriert: 31.01.2013, 09:41

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von Holzy » 31.01.2013, 09:55

Erstmal vielen Dank für die tolle Vorarbeit

Ich habe natürlich direkt die Vorgaben für NotePad++ übernommen und noch einige Einstellung angepasst. Wir ist wichtig, das bei grösserem Code die Textblöcke im Code korrekt gesetzt sind.

Nun kann man diese im Notepade ein- und ausblenden.

Code: Alles auswählen

<NotepadPlus>
    <UserLang name="HomeMatic" ext="hms" udlVersion="2.0">
        <Settings>
            <Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
            <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments" id="0">03 04 00! 00 01 02</Keywords>
            <Keywords name="Numbers, additional" id="1"></Keywords>
            <Keywords name="Numbers, prefixes" id="2"></Keywords>
            <Keywords name="Numbers, extras with prefixes" id="3"></Keywords>
            <Keywords name="Numbers, suffixes" id="4"></Keywords>
            <Keywords name="Operators1" id="5">- # & ( ) * . / ; [ ] | + < = ></Keywords>
            <Keywords name="Operators2" id="6"></Keywords>
            <Keywords name="Folders in code1, open" id="7">{</Keywords>
            <Keywords name="Folders in code1, middle" id="8"></Keywords>
            <Keywords name="Folders in code1, close" id="9">}</Keywords>
            <Keywords name="Folders in code2, open" id="10"></Keywords>
            <Keywords name="Folders in code2, middle" id="11"></Keywords>
            <Keywords name="Folders in code2, close" id="12"></Keywords>
            <Keywords name="Folders in comment, open" id="13"></Keywords>
            <Keywords name="Folders in comment, middle" id="14"></Keywords>
            <Keywords name="Folders in comment, close" id="15"></Keywords>
            <Keywords name="Keywords1" id="16">else false foreach if true while WriteLine quit</Keywords>
            <Keywords name="Keywords2" id="17">boolean integer real string time var object</Keywords>
            <Keywords name="Keywords3" id="18">Address Channel Channels ChnGroupPartnerId ChnDirection ChnAESActive ChnArchive ChnRoom ChnFunction Count Date Device DPs DPByHssDP Exec EnumUsedIDs EnumUsedNames Get GetAt GetObject GetVar Find Format ID IsTypeOf IsVar Interface HssType LastValue Length Name Operations ProgramExecute Split State StrValueByIndex Substr Timestamp ToFloat ToInteger ToString ToTime Type TypeName Value ValueType Variable VarType</Keywords>
            <Keywords name="Keywords4" id="19">OT_OBJECT OT_ENUM OT_DEVICE OT_CHANNEL OT_DP OT_VARDP $this$ $src$ OPERATION_READ OPERATION_WRITE OPERATION_EVENT</Keywords>
            <Keywords name="Keywords5" id="20"></Keywords>
            <Keywords name="Keywords6" id="21"></Keywords>
            <Keywords name="Keywords7" id="22"></Keywords>
            <Keywords name="Keywords8" id="23"></Keywords>
            <Keywords name="Delimiters" id="24">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" styleID="0" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="000000" bgColor="C0C0C0" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="NUMBERS" styleID="3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" styleID="12" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
Wie 'mtj' bereits beschrieben hat...
Den oben stehenden Code einfach in eine Textdatei (z.B. "HomeMaticScript.xml") kopieren. Dann in Notepad++ im Menü Ansicht/Benutzerdefinierte Sprache... auswählen, dort auf Importieren klicken und die Textdatei auswählen. Textdateien mit der Endung .hms werden nun automatisch mit der entsprechenden farbigen Markierung versehen.
HomeMatic System im Einsatz:
1x CCU1 ; 3x HM-LC-Sw4-DR ; 8x HM-CC-TC ; 3x HM-LC-Sw1-FM ; 1x HM-Sec-RHS ; 1x HM-WDS10-O

Programmierung
- Fussbodenheizung -> Themperatur pro Raum
- Luftfeuchtigkeit Bäder -> Regelung Ventilatoren
- Min., Max. und Durchschnittstemperatur und -luftfeuchtigkeit pro Raum
- Reinigungszeiten Fussbodenheizung
- Betriebszeitenerfassung

Benutzeravatar
JPS
Beiträge: 1093
Registriert: 07.08.2010, 22:51
System: Alternative CCU (auf Basis OCCU)
Hat sich bedankt: 8 Mal
Danksagung erhalten: 20 Mal
Kontaktdaten:

Re: Syntaxhervorhebung mit UltraEdit

Beitrag von JPS » 31.01.2013, 20:40

cool, vielen Dank.

Ergänzend zu erwähnen ist vielleicht, dass das Script vor dem Import in ASCI abgespeichert muss, der Import einer UTF-8 kodierten Datei hat bei mir nicht funktioniert.
Verwendung meiner Hinweise und Skripte auf eigenes Risiko | Ich übernehme hierfür keinerlei Gewährleistung bzw. Haftung

Antworten

Zurück zu „HomeMatic Zentrale (CCU / CCU2 / CCU3 / Charly)“