It is currently April 25th, 2024, 1:52 am

Notepad++ userDefineLang.xml for Rainmeter

Tips and Tricks from the Rainmeter Community
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

If you copy this text, and paste it and save it as:

C:\Users\YOURNAME\AppData\Roaming\Notepad++\userDefineLang.xml

You will get color coding when you edit Rainmeter .ini or .inc files.

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">" ! # / \ = [ ] ( )</Keywords>
            <Keywords name="Comment">1 1 2 2 0;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame Bold BoldItalic Border Both BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude Center ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize ForceReload Format Formula GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageAlpha ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure Italic KeepOnScreen LN LOG Label Left LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack None Normal NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Plugin Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType Right RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle Round SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume Shadow SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">ADDONSPATH CRLF CURRENTCONFIG CURRENTPATH PLUGINSPATH PROGRAMDRIVE PROGRAMPATH PSCREENAREAHEIGHT PSCREENAREAWIDTH PSCREENAREAX PSCREENAREAY PWORKAREAHEIGHT PWORKAREAWIDTH WORKAREAX PWORKAREAY ROOTCONFIGPATH SCREENAREAHEIGHT SCREENAREAHEIGHT@1 SCREENAREAHEIGHT@2 SCREENAREAWIDTH SCREENAREAWIDTH@1 SCREENAREAWIDTH@2 SCREENAREAX SCREENAREAX@1 SCREENAREAX@2 SCREENAREAY SCREENAREAY@1 SCREENAREAY@2 SETTINGSPATH SKINSPATH VSCREENAREAHEIGHT VSCREENAREAWIDTH VSCREENAREAX VSCREENAREAY WORKAREAHEIGHT WORKAREAHEIGHT@1 WORKAREAHEIGHT@2 WORKAREAWIDTH WORKAREAWIDTH@1 WORKAREAWIDTH@2 WORKAREAX WORKAREAX@1 WORKAREAX@2 WORKAREAY WORKAREAY@1 WORKAREAY@2</Keywords>
            <Keywords name="Words3">Execute RainmeterAbout RainmeterActivateConfig RainmeterClickThrough RainmeterClickThroughGroup RainmeterDeactivateConfig RainmeterDeactivateConfigGroup RainmeterDisableMeasure RainmeterDisableMeasureGroup RainmeterDraggable RainmeterDraggableGroup RainmeterEnableMeasure RainmeterEnableMeasureGroup RainmeterHide RainmeterHideFadeRainmeterToggleFade RainmeterHideFadeGroup RainmeterHideGroup RainmeterHideMeter RainmeterHideMeterGroup RainmeterKeepOnScreen RainmeterKeepOnScreenGroup RainmeterLsBoxHook RainmeterMove RainmeterMoveMeter RainmeterPluginBang RainmeterQuit RainmeterRedraw RainmeterRedrawGroup RainmeterRefresh RainmeterRefreshApp RainmeterRefreshGroup RainmeterResetStats RainmeterSetTransparency RainmeterSetTransparencyGroup RainmeterSetVariable RainmeterSetVariableGroup RainmeterShow RainmeterShowFade RainmeterShowFadeGroup RainmeterShowGroup RainmeterShowMeter RainmeterShowMeterGroup RainmeterSkinMenu RainmeterSnapEdges RainmeterSnapEdgesGroup RainmeterToggle RainmeterToggleConfig RainmeterToggleFadeGroup RainmeterToggleGroup RainmeterToggleMeasure RainmeterToggleMeasureGroup RainmeterToggleMeter RainmeterToggleMeterGroup RainmeterTrayMenu RainmeterWriteKeyValue RainmeterZPos RainmeterZPosGroup</Keywords>
            <Keywords name="Words4">Bar Bitmap Button Histogram Image Line Rotator Roundline String Calc CPU FreeDiskSpace Memory NetIn NetOut PhysicalMemory Registry SwapMemory Time UpTime AdvancedCPU.dll iTunesPlugin.dll MBM5Plugin.dll PerfMon.dll PingPlugin.dll MediaKey.dll PowerPlugin.dll QuotePlugin.dll RecycleManager.dll ResMon.dll SpeedFanPlugin.dll SysInfo.dll VirtualDesktops.dll WebParser.dll WifiStatus.dll Win7AudioPlugin.dll WindowMessagePlugin.dll WirelessInfo.dll</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="7934A3" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="009F50" bgColor="FFFFFF" fontName="" fontStyle="2" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
This makes working on Rainmeter skins a bit easier for me, as the color coding can help point out errors like misspelled Rainmeter keywords and !bang names , as well as mismatched square brackets and parentheses etc.

I think poiru has his own choices for colors, maybe he will post his as well so you can use either you like or create your own based on one of ours.
Last edited by jsmorley on November 5th, 2010, 1:03 pm, edited 2 times in total.
Reason: Replaced code with new version
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by poiru »

Here's mine:

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <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;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoScale Autoscale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame BothColor BothImage ButtonCommand ButtonImage ClickThrough ClipString CodePage ColorMatrix Command ConfigEditor ControlAngle ControlLength ControlStart CPUExclude CPUInclude Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork DesktopWorkArea DestAddress Disabled DisableVersionCheck Download Draggable DragMargins Drive Drives DynamicVariables DynamicWindowSize ErrorString FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize Format Formula GradientAngle GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageFlip ImageName ImageRotate ImageTint Interface InvertMeasure KeepOnScreen Label LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LowBound MaxValue Measure MeasureName MeasureName2 MeasureName2 Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction NativeTransparency NetInSpeed NetOutSpeed NetTotal NetTotalSpeed NumOfDecimals NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual Percentual PerfMon PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayStop Postfix PowerState Prefix PreserveAspectRatio PrimaryColor PrimaryImage ProcessName Proxy Random RecycleType RegExp RegHKey RegKey RegValue ResCountType RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType Text Text Timeout TimeoutValue TimeZone ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter Update UpdateDivider UpdateRandom UpdateRate URL ValueRemainder W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y Name Config Instructions Variant Description Version Tags License Preview</Keywords>
            <Keywords name="Words2">!Execute !RainmeterAbout !RainmeterActivateConfig !RainmeterDeactivateConfig !RainmeterDisableMeasure !RainmeterEnableMeasure !RainmeterHide !RainmeterHideMeter !RainmeterLsBoxHook !RainmeterMove !RainmeterMoveMeter !RainmeterPluginBang !RainmeterQuit !RainmeterRedraw !RainmeterRefresh !RainmeterResetStats !RainmeterSetVariable !RainmeterShow !RainmeterShowMeter !RainmeterToggle !RainmeterToggleConfig !RainmeterToggleMeasure !RainmeterToggleMeter !RainmeterZPos !RainmeterSetTransparency !RainmeterShowFade !RainmeterHideFade !RainmeterToggleFade !RainmeterRedraw !RainmeterShowMeterGroup !RainmeterHideMeterGroup !RainmeterToggleMeterGroup !RainmeterEnableMeasureGroup !RainmeterDisableMeasureGroup !RainmeterToggleMeasureGroup !RainmeterHideFadeGroup !RainmeterShowFadeGroup !RainmeterToggleFadeGroup !RainmeterDeactivateConfigGroup !RainmeterZPosGroup !RainmeterSetTransparencyGroup !RainmeterSetVariableGroup !RainmeterDraggableGroup !RainmeterKeepOnScreenGroup !RainmeterClickThroughGroup !RainmeterSnapEdgesGroup !RainmeterRedrawGroup !RainmeterRefreshGroup !RainmeterWriteKeyValue</Keywords>
            <Keywords name="Words3">Bar Bitmap Button Histogram Image Line Rotator Roundline String Calc CPU FreeDiskSpace Memory NetIn NetOut PhysicalMemory Plugin Registry SwapMemory Time UpTime</Keywords>
            <Keywords name="Words4"></Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="000080" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="800000" 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>
And it produces a result like this:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

Nice poiru...

Only problem is, if you define # as both an operator and a delimiter, it solves this problem in my setup:
style1.png
But causes this one, where the entire file after the #inbox is highlighted the # color:
style2.png
I think we still have a bit of a "lose-lose" on that highlighting #Variables# when they are embedded in text and preceded by other than an operator or nothing, as the solution causes other issues.

Key=#Var# works fine
#Var# works fine
ThisIsA#Var# still needs an answer if there is one.
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

I found a solution that works for me if not perfect:

I added all the built-in variables like CURRENTPATH and CRLF and such without the # marks as "Words2" and then made # just an operator and NOT a delimiter. This has this effect:
style3.png

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">" # ( ) [ ] =</Keywords>
            <Keywords name="Comment">1 1 2 2 0;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame Bold BoldItalic Border Both BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude Center ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize Format Formula GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageAlpha ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure Italic KeepOnScreen LN LOG Label Left LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack None Normal NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType Right RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle Round SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume Shadow SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">ADDONSPATH CRLF CURRENTCONFIG CURRENTPATH PLUGINSPATH PROGRAMDRIVE PROGRAMPATH PSCREENAREAHEIGHT PSCREENAREAWIDTH PSCREENAREAX PSCREENAREAY PWORKAREAHEIGHT PWORKAREAWIDTH PWORKAREAX PWORKAREAY ROOTCONFIGPATH SCREENAREAHEIGHT SCREENAREAHEIGHT@1 SCREENAREAHEIGHT@2 SCREENAREAWIDTH SCREENAREAWIDTH@1 SCREENAREAWIDTH@2 SCREENAREAX SCREENAREAX@1 SCREENAREAX@2 SCREENAREAY SCREENAREAY@1 SCREENAREAY@2 SETTINGSPATH SKINSPATH VSCREENAREAHEIGHT VSCREENAREAWIDTH VSCREENAREAX VSCREENAREAY WORKAREAHEIGHT WORKAREAHEIGHT@1 WORKAREAHEIGHT@2 WORKAREAWIDTH WORKAREAWIDTH@1 WORKAREAWIDTH@2 WORKAREAX WORKAREAX@1 WORKAREAX@2 WORKAREAY WORKAREAY@1 WORKAREAY@2</Keywords>
            <Keywords name="Words3">!Execute !RainmeterAbout !RainmeterActivateConfig !RainmeterClickThrough !RainmeterClickThroughGroup !RainmeterDeactivateConfig !RainmeterDeactivateConfigGroup !RainmeterDisableMeasure !RainmeterDisableMeasureGroup !RainmeterDraggable !RainmeterDraggableGroup !RainmeterEnableMeasure !RainmeterEnableMeasureGroup !RainmeterHide !RainmeterHideFade!RainmeterToggleFade !RainmeterHideFadeGroup !RainmeterHideGroup !RainmeterHideMeter !RainmeterHideMeterGroup !RainmeterKeepOnScreen !RainmeterKeepOnScreenGroup !RainmeterLsBoxHook !RainmeterMove !RainmeterMoveMeter !RainmeterPluginBang !RainmeterQuit !RainmeterRedraw !RainmeterRedrawGroup !RainmeterRefresh !RainmeterRefreshApp !RainmeterRefreshGroup !RainmeterResetStats !RainmeterSetTransparency !RainmeterSetTransparencyGroup !RainmeterSetVariable !RainmeterSetVariableGroup !RainmeterShow !RainmeterShowFade !RainmeterShowFadeGroup !RainmeterShowGroup !RainmeterShowMeter !RainmeterShowMeterGroup !RainmeterSkinMenu !RainmeterSnapEdges !RainmeterSnapEdgesGroup !RainmeterToggle !RainmeterToggleConfig !RainmeterToggleFadeGroup !RainmeterToggleGroup !RainmeterToggleMeasure !RainmeterToggleMeasureGroup !RainmeterToggleMeter !RainmeterToggleMeterGroup !RainmeterTrayMenu !RainmeterWriteKeyValue !RainmeterZPos !RainmeterZPosGroup</Keywords>
            <Keywords name="Words4">CPU Calc FreeDiskSpace Memory NetIn NetOut NetTotal PerfMon PhysicalMemory Plugin Registry SwapMemory Time Uptime Bar Bitmap Button Histogram Image Line Rotator Roundline String</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="7934A3" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="009F50" bgColor="FFFFFF" fontName="" fontStyle="2" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="0000A0" bgColor="FFFFFF" fontName="Trebuchet MS" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

P.S. I stole your idea of having the type names of meters and measures (like String and Plugin) be a different color. ;-)
You do not have the required permissions to view the files attached to this post.
Ghost-Rid3r
Posts: 7
Joined: October 22nd, 2010, 6:12 pm

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by Ghost-Rid3r »

Hey, this is really usefull! I was using standard INI on Notepad++ but this one is just more "easy to the eyes"! :)
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

Or a bit more subtle if you prefer...

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">" # ( ) [ ] =</Keywords>
            <Keywords name="Comment">1 1 2 2 0;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame Bold BoldItalic Border Both BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude Center ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize Format Formula GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageAlpha ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure Italic KeepOnScreen LN LOG Label Left LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack None Normal NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType Right RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle Round SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume Shadow SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">ADDONSPATH CRLF CURRENTCONFIG CURRENTPATH PLUGINSPATH PROGRAMDRIVE PROGRAMPATH PSCREENAREAHEIGHT PSCREENAREAWIDTH PSCREENAREAX PSCREENAREAY PWORKAREAHEIGHT PWORKAREAWIDTH WORKAREAX PWORKAREAY ROOTCONFIGPATH SCREENAREAHEIGHT SCREENAREAHEIGHT@1 SCREENAREAHEIGHT@2 SCREENAREAWIDTH SCREENAREAWIDTH@1 SCREENAREAWIDTH@2 SCREENAREAX SCREENAREAX@1 SCREENAREAX@2 SCREENAREAY SCREENAREAY@1 SCREENAREAY@2 SETTINGSPATH SKINSPATH VSCREENAREAHEIGHT VSCREENAREAWIDTH VSCREENAREAX VSCREENAREAY WORKAREAHEIGHT WORKAREAHEIGHT@1 WORKAREAHEIGHT@2 WORKAREAWIDTH WORKAREAWIDTH@1 WORKAREAWIDTH@2 WORKAREAX WORKAREAX@1 WORKAREAX@2 WORKAREAY WORKAREAY@1 WORKAREAY@2</Keywords>
            <Keywords name="Words3">!Execute !RainmeterAbout !RainmeterActivateConfig !RainmeterClickThrough !RainmeterClickThroughGroup !RainmeterDeactivateConfig !RainmeterDeactivateConfigGroup !RainmeterDisableMeasure !RainmeterDisableMeasureGroup !RainmeterDraggable !RainmeterDraggableGroup !RainmeterEnableMeasure !RainmeterEnableMeasureGroup !RainmeterHide !RainmeterHideFade!RainmeterToggleFade !RainmeterHideFadeGroup !RainmeterHideGroup !RainmeterHideMeter !RainmeterHideMeterGroup !RainmeterKeepOnScreen !RainmeterKeepOnScreenGroup !RainmeterLsBoxHook !RainmeterMove !RainmeterMoveMeter !RainmeterPluginBang !RainmeterQuit !RainmeterRedraw !RainmeterRedrawGroup !RainmeterRefresh !RainmeterRefreshApp !RainmeterRefreshGroup !RainmeterResetStats !RainmeterSetTransparency !RainmeterSetTransparencyGroup !RainmeterSetVariable !RainmeterSetVariableGroup !RainmeterShow !RainmeterShowFade !RainmeterShowFadeGroup !RainmeterShowGroup !RainmeterShowMeter !RainmeterShowMeterGroup !RainmeterSkinMenu !RainmeterSnapEdges !RainmeterSnapEdgesGroup !RainmeterToggle !RainmeterToggleConfig !RainmeterToggleFadeGroup !RainmeterToggleGroup !RainmeterToggleMeasure !RainmeterToggleMeasureGroup !RainmeterToggleMeter !RainmeterToggleMeterGroup !RainmeterTrayMenu !RainmeterWriteKeyValue !RainmeterZPos !RainmeterZPosGroup</Keywords>
            <Keywords name="Words4">CPU Calc FreeDiskSpace Memory NetIn NetOut NetTotal PerfMon PhysicalMemory Plugin Registry SwapMemory Time Uptime Bar Bitmap Button Histogram Image Line Rotator Roundline String</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="7934A3" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="009F50" bgColor="FFFFFF" fontName="" fontStyle="2" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
xml_1.png
You do not have the required permissions to view the files attached to this post.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by poiru »

Here's my updated version. Only change is that instead of highlighting the word "Plugin" it highlights the .dll files:
Image

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <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;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoScale AutoSelectScreen Autoscale AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame Bold BoldItalic Border Both BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude Center ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize Format Formula GradientAngle GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure Italic KeepOnScreen LN LOG Label Left LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 MeasureName3 MeasureName4 MeasureName5 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack None Normal NumOfDecimals NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Plugin Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy RANDOM ROUND Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType Right RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume Shadow SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">Execute RainmeterAbout RainmeterActivateConfig RainmeterDeactivateConfig RainmeterDisableMeasure RainmeterEnableMeasure RainmeterHide RainmeterHideMeter RainmeterLsBoxHook RainmeterMove RainmeterMoveMeter RainmeterPluginBang RainmeterQuit RainmeterRedraw RainmeterRefresh RainmeterResetStats RainmeterSetVariable RainmeterShow RainmeterShowMeter RainmeterToggle RainmeterToggleConfig RainmeterToggleMeasure RainmeterToggleMeter RainmeterZPos RainmeterSetTransparency RainmeterShowFade RainmeterHideFade RainmeterToggleFade RainmeterRedraw RainmeterShowMeterGroup RainmeterHideMeterGroup RainmeterToggleMeterGroup RainmeterEnableMeasureGroup RainmeterDisableMeasureGroup RainmeterToggleMeasureGroup RainmeterHideFadeGroup RainmeterShowFadeGroup RainmeterToggleFadeGroup RainmeterDeactivateConfigGroup RainmeterZPosGroup RainmeterSetTransparencyGroup RainmeterSetVariableGroup RainmeterDraggableGroup RainmeterKeepOnScreenGroup RainmeterClickThroughGroup RainmeterSnapEdgesGroup RainmeterRedrawGroup RainmeterRefreshGroup RainmeterWriteKeyValue</Keywords>
            <Keywords name="Words3">Bar Bitmap Button Histogram Image Line Rotator Roundline String Calc CPU FreeDiskSpace Memory NetIn NetOut PhysicalMemory Registry SwapMemory Time UpTime AdvancedCPU.dll iTunesPlugin.dll MBM5Plugin.dll PerfMon.dll PingPlugin.dll MediaKey.dll PowerPlugin.dll QuotePlugin.dll RecycleManager.dll ResMon.dll SpeedFanPlugin.dll SysInfo.dll VirtualDesktops.dll WebParser.dll WifiStatus.dll Win7AudioPlugin.dll WindowMessagePlugin.dll WirelessInfo.dll</Keywords>
            <Keywords name="Words4"></Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="008080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="804040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="008040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="800000" 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>
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by dragonmage »

Can we not maintain the ability to collapse [Sections] with a userdefined language?

Here's something I tinkered with today...
NppUDef.jpg
A little less subtle ;)

Section names an execute statements stand out
Shows open [] or ""
Numbers are blue and larger
Things in parentheses are green
= , ( ) \ in red
Values such as CENTER BOLD etc are underlined and purple
Measures and Plugins are in light blue (may change that to differentiate more easily)

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">["0]"0</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">" # ( ) , \ =</Keywords>
            <Keywords name="Comment">1 1 2 2 0;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 @Include3 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize Format Formula GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageAlpha ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure KeepOnScreen LN LOG Label LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle Round SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume SkinPath SnapEdges SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">ADDONSPATH CRLF CURRENTCONFIG CURRENTPATH PLUGINSPATH PROGRAMDRIVE PROGRAMPATH PSCREENAREAHEIGHT PSCREENAREAWIDTH PSCREENAREAX PSCREENAREAY PWORKAREAHEIGHT PWORKAREAWIDTH PWORKAREAX PWORKAREAY ROOTCONFIGPATH SCREENAREAHEIGHT SCREENAREAHEIGHT@1 SCREENAREAHEIGHT@2 SCREENAREAWIDTH SCREENAREAWIDTH@1 SCREENAREAWIDTH@2 SCREENAREAX SCREENAREAX@1 SCREENAREAX@2 SCREENAREAY SCREENAREAY@1 SCREENAREAY@2 SETTINGSPATH SKINSPATH VSCREENAREAHEIGHT VSCREENAREAWIDTH VSCREENAREAX VSCREENAREAY WORKAREAHEIGHT WORKAREAHEIGHT@1 WORKAREAHEIGHT@2 WORKAREAWIDTH WORKAREAWIDTH@1 WORKAREAWIDTH@2 WORKAREAX WORKAREAX@1 WORKAREAX@2 WORKAREAY WORKAREAY@1 WORKAREAY@2</Keywords>
            <Keywords name="Words3">!Execute !RainmeterAbout !RainmeterActivateConfig !RainmeterClickThrough !RainmeterClickThroughGroup !RainmeterDeactivateConfig !RainmeterDeactivateConfigGroup !RainmeterDisableMeasure !RainmeterDisableMeasureGroup !RainmeterDraggable !RainmeterDraggableGroup !RainmeterEnableMeasure !RainmeterEnableMeasureGroup !RainmeterHide !RainmeterHideFade!RainmeterToggleFade !RainmeterHideFadeGroup !RainmeterHideGroup !RainmeterHideMeter !RainmeterHideMeterGroup !RainmeterKeepOnScreen !RainmeterKeepOnScreenGroup !RainmeterLsBoxHook !RainmeterMove !RainmeterMoveMeter !RainmeterPluginBang !RainmeterQuit !RainmeterRedraw !RainmeterRedrawGroup !RainmeterRefresh !RainmeterRefreshApp !RainmeterRefreshGroup !RainmeterResetStats !RainmeterSetTransparency !RainmeterSetTransparencyGroup !RainmeterSetVariable !RainmeterSetVariableGroup !RainmeterShow !RainmeterShowFade !RainmeterShowFadeGroup !RainmeterShowGroup !RainmeterShowMeter !RainmeterShowMeterGroup !RainmeterSkinMenu !RainmeterSnapEdges !RainmeterSnapEdgesGroup !RainmeterToggle !RainmeterToggleConfig !RainmeterToggleFadeGroup !RainmeterToggleGroup !RainmeterToggleMeasure !RainmeterToggleMeasureGroup !RainmeterToggleMeter !RainmeterToggleMeterGroup !RainmeterTrayMenu !RainmeterWriteKeyValue !RainmeterZPos !RainmeterZPosGroup Left Bold BoldItalic Border Both Center Solid Shadow Right None Italic Normal</Keywords>
            <Keywords name="Words4">CPU Calc FreeDiskSpace Memory NetIn NetOut NetTotal PerfMon PhysicalMemory Registry SwapMemory Time Uptime Bar Bitmap Button Histogram Image Line Rotator Roundline String AdvancedCPU.dll iTunesPlugin.dll MBM5Plugin.dll PerfMon.dll PingPlugin.dll MediaKey.dll PowerPlugin.dll QuotePlugin.dll RecycleManager.dll ResMon.dll SpeedFanPlugin.dll SysInfo.dll VirtualDesktops.dll WebParser.dll WifiStatus.dll Win7AudioPlugin.dll WindowMessagePlugin.dll WirelessInfo.dll Plugin Plugins\</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="8000FF" bgColor="FFFFFF" fontName="Trebuchet MS" fontStyle="5" fontSize="10" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="5EAEFF" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="00B900" bgColor="FFFFFF" fontName="" fontStyle="2" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="11" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="5EAEFF" bgColor="313131" fontName="" fontStyle="1" fontSize="12" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

I liked some of what you did poiru. So I modified mine again.

My colors are slightly different, and I prefer <Keywords name="Operators">" ! # / \ = [ ] ( )</Keywords> so that quotes, section brackets and calc parens are hightlighted. I also highlighted built-in variables like #SCREENAREAWIDTH#.

Code: Select all

<NotepadPlus>
    <UserLang name="Rainmeter" ext="ini inc">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">000000</Keywords>
            <Keywords name="Folder+"></Keywords>
            <Keywords name="Folder-"></Keywords>
            <Keywords name="Operators">" ! # / \ = [ ] ( )</Keywords>
            <Keywords name="Comment">1 1 2 2 0;</Keywords>
            <Keywords name="Words1">@Include @Include1 @Include2 ABS ACOS ASIN ATAN Active AlphaValue AlwaysOnTop AnchorX AnchorY Angle AntiAlias AppVersion Author AutoScale AutoSelectScreen AverageSize Background BackgroundMargins BackgroundMode BarBorder BarColor BarImage BarOrientation BevelType BitmapAlign BitmapDigits BitmapExtend BitmapFrames BitmapImage BitmapSeparation BitmapTransitionFrames BitmapZeroFrame Bold BoldItalic Border Both BothColor BothImage ButtonCommand ButtonImage CEIL COS CPUExclude CPUInclude Center ChangeVolume ClickThrough ClipString CodePage ColorMatrix Command Config ConfigEditor ControlAngle ControlLength ControlStart Cumulative DaylightSavingTime Debug Debug2File DecodeCharacterReference DefaultArtwork Description DesktopWorkArea DestAddress DisableVersionCheck Disabled Download DragMargins Draggable Drive Drives DynamicVariables DynamicWindowSize EXP ErrorString FLOOR FRAC FadeDuration FileFilter FinishAction Flip FontColor FontEffectColor FontFace FontSize ForceReload Format Formula GradientAngle GreyScale Group H Hidden HideOnMouseOver HighBound Horizontal HorizontalLineColor HorizontalLines IfAboveAction IfAboveValue IfBelowAction IfBelowValue IfEqualAction IfEqualValue IgnoreRemovable ImageAlpha ImageFlip ImageName ImageRotate ImageTint Instructions Interface InvertMeasure Italic KeepOnScreen LN LOG Label Left LeftMouseDoubleClickAction LeftMouseDownAction LeftMouseUpAction LengthShift License LineColor LineCount LineLength LineStart LineWidth LoadOrder LocalFont LocalFont2 LowBound Lower MaxValue Measure MeasureName MeasureName2 Metadata Meter MeterStyle MiddleMouseDoubleClickAction MiddleMouseDownAction MiddleMouseUpAction MinValue MouseActionCursor MouseLeaveAction MouseOverAction Name NativeTransparency NetInSpeed NetOutSpeed NetTotalSpeed NextTrack None Normal NumOfDecimals OffsetX OffsetY OnRefreshAction Path PathName Percentual PerfMonCounter PerfMonDifference PerfMonInstance PerfMonObject Play PlayLoop PlayPause PlayStop Plugin Postfix PowerState Prefix PreserveAspectRatio PrevTrack Preview PrimaryColor PrimaryImage ProcessName Processor Proper Proxy Rainmeter Random RecycleType RegExp RegHKey RegKey RegValue ResCountType Right RightMouseDoubleClickAction RightMouseDownAction RightMouseUpAction RotationAngle Round SGN SIN SQRT SavePosition Scale SecondaryColor SecondaryImage SecondaryMeasureName Separator SetOutputIndex SetVolume Shadow SkinPath SnapEdges Solid SolidColor SolidColor2 SpeedFanNumber SpeedFanScale SpeedFanType StartAngle StartHidden StartShift Stop StringAlign StringCase StringEffect StringIndex StringIndex2 StringStyle Subfolders Substitute SysInfoData SysInfoType TAN TRUNC Tags Text TimeZone Timeout TimeoutValue ToggleMute ToggleNext TogglePrevious ToolTipHidden ToolTipIcon ToolTipText ToolTipTitle ToolTipType ToolTipWidth TopProcess Total TrafficAction TrafficValue TransformationMatrix TransitionUpdate TrayBitmap TrayColor1 TrayColor2 TrayExecuteDL TrayExecuteDM TrayExecuteDR TrayExecuteL TrayExecuteM TrayExecuteR TrayIcon TrayMeter URL Update UpdateDivider UpdateRandom UpdateRate Upper ValueRemainder Variables Variant Version Vertical VolumeDown VolumeMute VolumeUp W WifiInfoType WifiIntfID WifiListLimit WifiListStyle WindowClass WindowMessage WindowName WindowX WindowY X Y</Keywords>
            <Keywords name="Words2">ADDONSPATH CRLF CURRENTCONFIG CURRENTPATH PLUGINSPATH PROGRAMDRIVE PROGRAMPATH PSCREENAREAHEIGHT PSCREENAREAWIDTH PSCREENAREAX PSCREENAREAY PWORKAREAHEIGHT PWORKAREAWIDTH WORKAREAX PWORKAREAY ROOTCONFIGPATH SCREENAREAHEIGHT SCREENAREAHEIGHT@1 SCREENAREAHEIGHT@2 SCREENAREAWIDTH SCREENAREAWIDTH@1 SCREENAREAWIDTH@2 SCREENAREAX SCREENAREAX@1 SCREENAREAX@2 SCREENAREAY SCREENAREAY@1 SCREENAREAY@2 SETTINGSPATH SKINSPATH VSCREENAREAHEIGHT VSCREENAREAWIDTH VSCREENAREAX VSCREENAREAY WORKAREAHEIGHT WORKAREAHEIGHT@1 WORKAREAHEIGHT@2 WORKAREAWIDTH WORKAREAWIDTH@1 WORKAREAWIDTH@2 WORKAREAX WORKAREAX@1 WORKAREAX@2 WORKAREAY WORKAREAY@1 WORKAREAY@2</Keywords>
            <Keywords name="Words3">Execute RainmeterAbout RainmeterActivateConfig RainmeterClickThrough RainmeterClickThroughGroup RainmeterDeactivateConfig RainmeterDeactivateConfigGroup RainmeterDisableMeasure RainmeterDisableMeasureGroup RainmeterDraggable RainmeterDraggableGroup RainmeterEnableMeasure RainmeterEnableMeasureGroup RainmeterHide RainmeterHideFadeRainmeterToggleFade RainmeterHideFadeGroup RainmeterHideGroup RainmeterHideMeter RainmeterHideMeterGroup RainmeterKeepOnScreen RainmeterKeepOnScreenGroup RainmeterLsBoxHook RainmeterMove RainmeterMoveMeter RainmeterPluginBang RainmeterQuit RainmeterRedraw RainmeterRedrawGroup RainmeterRefresh RainmeterRefreshApp RainmeterRefreshGroup RainmeterResetStats RainmeterSetTransparency RainmeterSetTransparencyGroup RainmeterSetVariable RainmeterSetVariableGroup RainmeterShow RainmeterShowFade RainmeterShowFadeGroup RainmeterShowGroup RainmeterShowMeter RainmeterShowMeterGroup RainmeterSkinMenu RainmeterSnapEdges RainmeterSnapEdgesGroup RainmeterToggle RainmeterToggleConfig RainmeterToggleFadeGroup RainmeterToggleGroup RainmeterToggleMeasure RainmeterToggleMeasureGroup RainmeterToggleMeter RainmeterToggleMeterGroup RainmeterTrayMenu RainmeterWriteKeyValue RainmeterZPos RainmeterZPosGroup</Keywords>
            <Keywords name="Words4">Bar Bitmap Button Histogram Image Line Rotator Roundline String Calc CPU FreeDiskSpace Memory NetIn NetOut PhysicalMemory Registry SwapMemory Time UpTime AdvancedCPU.dll iTunesPlugin.dll MBM5Plugin.dll PerfMon.dll PingPlugin.dll MediaKey.dll PowerPlugin.dll QuotePlugin.dll RecycleManager.dll ResMon.dll SpeedFanPlugin.dll SysInfo.dll VirtualDesktops.dll WebParser.dll WifiStatus.dll Win7AudioPlugin.dll WindowMessagePlugin.dll WirelessInfo.dll</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF80C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000A0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="7934A3" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="009F50" bgColor="FFFFFF" fontName="" fontStyle="2" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="408080" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="0080C0" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="1" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
11-5-2010 8-49-16 AM.png
Now we just need some C++ geek to write a lexer so when you type "StringAlign=" it automatically pops up a dropdown with "LEFT / RIGHT / CENTER". AutoIt's editor, like Notepad++ based on SciTE, makes good use of a lexer:
11-5-2010 9-07-07 AM.png
11-5-2010 9-10-00 AM.png
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++ userDefineLang.xml for Rainmeter

Post by jsmorley »

By the way, the latest Notepad++ 5.8.4 http://filehippo.com/download_notepad/ has the following fix that is relevant to this discussion:

2. Fix User Defined Language dialog docking problem under Windows 7.