AutoHotkey Community

It is currently May 27th, 2012, 9:37 am

All times are UTC [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Notepad ++ code support
PostPosted: September 3rd, 2006, 8:35 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
Hi,

I don't think it's been updated recently... or in the last couple of years, and there's several bugs in it. For instance, when you do /* */, it shows any code after it as comments out (green). Also, when you do something with a standard function it turns blue, but you can continue to type and it will always be blue.

For instance "Gui" turns blue

if you change it to "Guiasdasdasdasd" it is still blue. It would be helpful if this was fixed, as it's my favorite editor :).

-Kerryt


Last edited by Kerry on September 4th, 2006, 9:25 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2006, 9:32 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Could you provide an improved "userDefineLang.xml"?
It is in "%AHKPath%\Extras\Editors\Notepad++". Or is the problem somewhere else?

Maybe you can create a script that creates this file automatically from the syntax files. I do not know if Chris updates it automatically. I found some words which have been added in v1.0.41. So it is not that old.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2006, 9:38 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I just noticed that the "AHK Autohotkey.api" is ascii too. But it seems to be just commands. Please take a look if the problem is there?
Since TreeView is in the list, I guess it is automatically created and up to date.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 3rd, 2006, 11:09 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
Ok - I'll take a look.

-Kerry


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 10:58 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
Hi - fixed those two problems.

If you or Chris (if he reads this) could put this in the Notepad++ folder instead of the current one:

userDefineLang.xml

I did the necessary changes and it's doing much better now :)

-Kerry

_________________
String Manipulator - GrabIco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 11:08 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Thanks,
If Chris doesn't post in a few days, send him a PM or email. I assume he will be happy about the improvements you made. Please describe the changes, if possible.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 11:32 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
Sure - not sure if meant describe them here or not, but might as well

original
Code:
<NotepadPlus>
    <UserLang name="AHK Autohotkey" ext="ahk">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="yes" words2="yes" words3="yes" words4="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">%00%00</Keywords>
            <Keywords name="Folder+">;***&#x0D;&#x0A;{</Keywords>
            <Keywords name="Folder-">;*&#x0D;&#x0A;}</Keywords>
            <Keywords name="Operators">&gt;</Keywords>
            <Keywords name="Comment">1/* 1 2*/ 2 0;</Keywords>
            <Keywords name="Words1">#AllowSameLineComments&#x0D;&#x0A;#ClipboardTimeout&#x0D;&#x0A;#CommentFlag&#x0D;&#x0A;#ErrorStdOut&#x0D;&#x0A;#EscapeChar&#x0D;&#x0A;#HotkeyInterval&#x0D;&#x0A;#HotkeyModIfierTimeout&#x0D;&#x0A;#Hotstring&#x0D;&#x0A;#Include&#x0D;&#x0A;#IncludeAgain&#x0D;&#x0A;#IfWinActive&#x0D;&#x0A;#IfWinExist&#x0D;&#x0A;#IfWinNotActive&#x0D;&#x0A;#IfWinNotExist&#x0D;&#x0A;#InstallKeybdHook&#x0D;&#x0A;#InstallMouseHook&#x0D;&#x0A;#KeyHistory&#x0D;&#x0A;#MaxHotkeysPerInterval&#x0D;&#x0A;#MaxMem&#x0D;&#x0A;#MaxThreads&#x0D;&#x0A;#MaxThreadsBuffer&#x0D;&#x0A;#MaxThreadsPerHotkey&#x0D;&#x0A;#NoEnv&#x0D;&#x0A;#NoTrayIcon&#x0D;&#x0A;#Persistent&#x0D;&#x0A;#SingleInstance&#x0D;&#x0A;#UseHook&#x0D;&#x0A;#WinActivateForce&#x0D;&#x0A;AutoTrim&#x0D;&#x0A;BlockInput&#x0D;&#x0A;Break&#x0D;&#x0A;Click&#x0D;&#x0A;ClipWait&#x0D;&#x0A;Continue&#x0D;&#x0A;Control&#x0D;&#x0A;ControlClick&#x0D;&#x0A;ControlFocus&#x0D;&#x0A;ControlGet&#x0D;&#x0A;ControlGetFocus&#x0D;&#x0A;ControlGetPos&#x0D;&#x0A;ControlGetText&#x0D;&#x0A;ControlMove&#x0D;&#x0A;ControlSend&#x0D;&#x0A;ControlSendRaw&#x0D;&#x0A;ControlSetText&#x0D;&#x0A;CoordMode&#x0D;&#x0A;Critical&#x0D;&#x0A;DetectHiddenText&#x0D;&#x0A;DetectHiddenWindows&#x0D;&#x0A;DllCall&#x0D;&#x0A;Drive&#x0D;&#x0A;DriveGet&#x0D;&#x0A;DriveSpaceFree&#x0D;&#x0A;Edit&#x0D;&#x0A;Else&#x0D;&#x0A;EndRepeat&#x0D;&#x0A;EnvAdd&#x0D;&#x0A;EnvDiv&#x0D;&#x0A;EnvGet&#x0D;&#x0A;EnvMult&#x0D;&#x0A;EnvSet&#x0D;&#x0A;EnvSub&#x0D;&#x0A;EnvUpdate&#x0D;&#x0A;Exit&#x0D;&#x0A;ExitApp&#x0D;&#x0A;FileAppend&#x0D;&#x0A;FileCopy&#x0D;&#x0A;FileCopyDir&#x0D;&#x0A;FileCreateDir&#x0D;&#x0A;FileCreateShortcut&#x0D;&#x0A;FileDelete&#x0D;&#x0A;FileGetAttrib&#x0D;&#x0A;FileGetShortcut&#x0D;&#x0A;FileGetSize&#x0D;&#x0A;FileGetTime&#x0D;&#x0A;FileGetVersion&#x0D;&#x0A;FileInstall&#x0D;&#x0A;FileMove&#x0D;&#x0A;FileMoveDir&#x0D;&#x0A;FileRead&#x0D;&#x0A;FileReadLine&#x0D;&#x0A;FileRecycle&#x0D;&#x0A;FileRecycleEmpty&#x0D;&#x0A;FileRemoveDir&#x0D;&#x0A;FileSelectFile&#x0D;&#x0A;FileSelectFolder&#x0D;&#x0A;FileSetAttrib&#x0D;&#x0A;FileSetTime&#x0D;&#x0A;FormatTime&#x0D;&#x0A;GetKeyState&#x0D;&#x0A;Gosub&#x0D;&#x0A;Goto&#x0D;&#x0A;GroupActivate&#x0D;&#x0A;GroupAdd&#x0D;&#x0A;GroupClose&#x0D;&#x0A;GroupDeactivate&#x0D;&#x0A;Gui&#x0D;&#x0A;GuiControl&#x0D;&#x0A;GuiControlGet&#x0D;&#x0A;HideAutoItWin&#x0D;&#x0A;Hotkey&#x0D;&#x0A;If&#x0D;&#x0A;IfEqual&#x0D;&#x0A;IfExist&#x0D;&#x0A;IfGreater&#x0D;&#x0A;IfGreaterOrEqual&#x0D;&#x0A;IfInString&#x0D;&#x0A;IfLess&#x0D;&#x0A;IfLessOrEqual&#x0D;&#x0A;IfMsgBox&#x0D;&#x0A;IfNotEqual&#x0D;&#x0A;IfNotExist&#x0D;&#x0A;IfNotInString&#x0D;&#x0A;IfWinActive&#x0D;&#x0A;IfWinExist&#x0D;&#x0A;IfWinNotActive&#x0D;&#x0A;IfWinNotExist&#x0D;&#x0A;ImageSearch&#x0D;&#x0A;IniDelete&#x0D;&#x0A;IniRead&#x0D;&#x0A;IniWrite&#x0D;&#x0A;Input&#x0D;&#x0A;InputBox&#x0D;&#x0A;IsLabel&#x0D;&#x0A;KeyHistory&#x0D;&#x0A;KeyWait&#x0D;&#x0A;ListHotkeys&#x0D;&#x0A;ListLines&#x0D;&#x0A;ListVars&#x0D;&#x0A;Loop&#x0D;&#x0A;Menu&#x0D;&#x0A;MouseClick&#x0D;&#x0A;MouseClickDrag&#x0D;&#x0A;MouseGetPos&#x0D;&#x0A;MouseMove&#x0D;&#x0A;MsgBox&#x0D;&#x0A;OnExit&#x0D;&#x0A;OnMessage&#x0D;&#x0A;OutputDebug&#x0D;&#x0A;Pause&#x0D;&#x0A;PixelGetColor&#x0D;&#x0A;Pixelsearch&#x0D;&#x0A;PostMessage&#x0D;&#x0A;Process&#x0D;&#x0A;Progress&#x0D;&#x0A;Random&#x0D;&#x0A;RegDelete&#x0D;&#x0A;RegRead&#x0D;&#x0A;RegWrite&#x0D;&#x0A;Reload&#x0D;&#x0A;Repeat&#x0D;&#x0A;Return&#x0D;&#x0A;Run&#x0D;&#x0A;RunAs&#x0D;&#x0A;RunWait&#x0D;&#x0A;Send&#x0D;&#x0A;SendMessage&#x0D;&#x0A;SendEvent&#x0D;&#x0A;SendInput&#x0D;&#x0A;SendMode&#x0D;&#x0A;SendPlay&#x0D;&#x0A;SendRaw&#x0D;&#x0A;SetBatchLines&#x0D;&#x0A;SetCapsLockState&#x0D;&#x0A;SetControlDelay&#x0D;&#x0A;SetDefaultMouseSpeed&#x0D;&#x0A;SetEnv&#x0D;&#x0A;SetFormat&#x0D;&#x0A;SetKeyDelay&#x0D;&#x0A;SetMouseDelay&#x0D;&#x0A;SetNumLockState&#x0D;&#x0A;SetScrollLockState&#x0D;&#x0A;SetStoreCapslockMode&#x0D;&#x0A;SetTimer&#x0D;&#x0A;SetTitleMatchMode&#x0D;&#x0A;SetWinDelay&#x0D;&#x0A;SetWorkingDir&#x0D;&#x0A;Shutdown&#x0D;&#x0A;Sleep&#x0D;&#x0A;Sort&#x0D;&#x0A;SoundBeep&#x0D;&#x0A;SoundGet&#x0D;&#x0A;SoundGetWaveVolume&#x0D;&#x0A;SoundPlay&#x0D;&#x0A;SoundSet&#x0D;&#x0A;SoundSetWaveVolume&#x0D;&#x0A;SplashImage&#x0D;&#x0A;SplashTextOff&#x0D;&#x0A;SplashTextOn&#x0D;&#x0A;SplitPath&#x0D;&#x0A;StatusBarGetText&#x0D;&#x0A;StatusBarWait&#x0D;&#x0A;StringCaseSense&#x0D;&#x0A;StringGetPos&#x0D;&#x0A;StringLeft&#x0D;&#x0A;StringLen&#x0D;&#x0A;StringLower&#x0D;&#x0A;StringMid&#x0D;&#x0A;StringReplace&#x0D;&#x0A;StringRight&#x0D;&#x0A;StringSplit&#x0D;&#x0A;StringTrimLeft&#x0D;&#x0A;StringTrimRight&#x0D;&#x0A;StringUpper&#x0D;&#x0A;Suspend&#x0D;&#x0A;SysGet&#x0D;&#x0A;Thread&#x0D;&#x0A;ToolTip&#x0D;&#x0A;Transform&#x0D;&#x0A;TrayTip&#x0D;&#x0A;URLDownloadToFile&#x0D;&#x0A;VarSetCapcity&#x0D;&#x0A;WinActivate&#x0D;&#x0A;WinActivateBottom&#x0D;&#x0A;WinClose&#x0D;&#x0A;WinGet&#x0D;&#x0A;WinGetActiveStats&#x0D;&#x0A;WinGetActiveTitle&#x0D;&#x0A;WinGetClass&#x0D;&#x0A;WinGetPos&#x0D;&#x0A;WinGetText&#x0D;&#x0A;WinGetTitle&#x0D;&#x0A;WinHide&#x0D;&#x0A;WinKill&#x0D;&#x0A;WinMaximize&#x0D;&#x0A;WinMenuSelectItem&#x0D;&#x0A;WinMinimize&#x0D;&#x0A;WinMinimizeAll&#x0D;&#x0A;WinMinimizeAllUndo&#x0D;&#x0A;WinMove&#x0D;&#x0A;WinRestore&#x0D;&#x0A;WinSet&#x0D;&#x0A;WinSetTitle&#x0D;&#x0A;WinShow&#x0D;&#x0A;WinWait&#x0D;&#x0A;WinWaitActive&#x0D;&#x0A;WinWaitClose&#x0D;&#x0A;WinWaitNotActive</Keywords>
            <Keywords name="Words2"></Keywords>
            <Keywords name="Words3">%A_&#x0D;&#x0A;A_AhkPath&#x0D;&#x0A;A_AhkVersion&#x0D;&#x0A;A_AppData&#x0D;&#x0A;A_AppDataCommon&#x0D;&#x0A;A_AutoTrim&#x0D;&#x0A;A_BatchLines&#x0D;&#x0A;A_CaretX&#x0D;&#x0A;A_CaretY&#x0D;&#x0A;A_ComputerName&#x0D;&#x0A;A_ControlDelay&#x0D;&#x0A;A_Cursor&#x0D;&#x0A;A_DD&#x0D;&#x0A;A_DDD&#x0D;&#x0A;A_DDDD&#x0D;&#x0A;A_DefaultMouseSpeed&#x0D;&#x0A;A_Desktop&#x0D;&#x0A;A_DesktopCommon&#x0D;&#x0A;A_DetectHiddenText&#x0D;&#x0A;A_DetectHiddenWindows&#x0D;&#x0A;A_EndChar&#x0D;&#x0A;A_ExitReason&#x0D;&#x0A;A_FormatFloat&#x0D;&#x0A;A_FormatInteger&#x0D;&#x0A;A_Gui&#x0D;&#x0A;A_GuiControl&#x0D;&#x0A;A_EventInfo&#x0D;&#x0A;A_GuiX&#x0D;&#x0A;A_GuiY&#x0D;&#x0A;A_GuiEvent&#x0D;&#x0A;A_GuiControlEvent&#x0D;&#x0A;A_GuiHeight&#x0D;&#x0A;A_GuiWidth&#x0D;&#x0A;A_Hour&#x0D;&#x0A;A_IconFile&#x0D;&#x0A;A_IconHidden&#x0D;&#x0A;A_IconNumber&#x0D;&#x0A;A_IconTip&#x0D;&#x0A;A_Index&#x0D;&#x0A;A_IPAddress1&#x0D;&#x0A;A_IPAddress2&#x0D;&#x0A;A_IPAddress3&#x0D;&#x0A;A_IPAddress4&#x0D;&#x0A;A_ISAdmin&#x0D;&#x0A;A_IsCompiled&#x0D;&#x0A;A_IsSuspended&#x0D;&#x0A;A_KeyDelay&#x0D;&#x0A;A_Language&#x0D;&#x0A;A_LastError&#x0D;&#x0A;A_LineNumber&#x0D;&#x0A;A_LineFile&#x0D;&#x0A;A_LoopField&#x0D;&#x0A;A_LoopFileAttrib&#x0D;&#x0A;A_LoopFileDir&#x0D;&#x0A;A_LoopFileExt&#x0D;&#x0A;A_LoopFileFullPath&#x0D;&#x0A;A_LoopFileLongPath&#x0D;&#x0A;A_LoopFileName&#x0D;&#x0A;A_LoopFileShortName&#x0D;&#x0A;A_LoopFileShortPath&#x0D;&#x0A;A_LoopFileSize&#x0D;&#x0A;A_LoopFileSizeKB&#x0D;&#x0A;A_LoopFileSizeMB&#x0D;&#x0A;A_LoopFileTimeAccessed&#x0D;&#x0A;A_LoopFileTimeCreated&#x0D;&#x0A;A_LoopFileTimeModified&#x0D;&#x0A;A_LoopReadLine&#x0D;&#x0A;A_LoopRegKey&#x0D;&#x0A;A_LoopRegName&#x0D;&#x0A;A_LoopRegSubkey&#x0D;&#x0A;A_LoopRegTimeModified&#x0D;&#x0A;A_LoopRegType&#x0D;&#x0A;A_MDAY&#x0D;&#x0A;A_Min&#x0D;&#x0A;A_MM&#x0D;&#x0A;A_MMM&#x0D;&#x0A;A_MMMM&#x0D;&#x0A;A_MON&#x0D;&#x0A;A_MouseDelay&#x0D;&#x0A;A_MyDocuments&#x0D;&#x0A;A_Now&#x0D;&#x0A;A_NowUTC&#x0D;&#x0A;A_NumBatchLines&#x0D;&#x0A;A_OSType&#x0D;&#x0A;A_OSVersion&#x0D;&#x0A;A_PriorHotkey&#x0D;&#x0A;ProgramFiles&#x0D;&#x0A;A_ProgramFiles&#x0D;&#x0A;A_Programs&#x0D;&#x0A;A_ProgramsCommon&#x0D;&#x0A;A_ScreenHeight&#x0D;&#x0A;A_ScreenWidth&#x0D;&#x0A;A_ScriptDir&#x0D;&#x0A;A_ScriptFullPath&#x0D;&#x0A;A_ScriptName&#x0D;&#x0A;A_Sec&#x0D;&#x0A;A_Space&#x0D;&#x0A;A_StartMenu&#x0D;&#x0A;A_StartMenuCommon&#x0D;&#x0A;A_Startup&#x0D;&#x0A;A_StartupCommon&#x0D;&#x0A;A_StringCaseSense&#x0D;&#x0A;A_Tab&#x0D;&#x0A;A_Temp&#x0D;&#x0A;A_ThisHotkey&#x0D;&#x0A;A_ThisMenu&#x0D;&#x0A;A_ThisMenuItem&#x0D;&#x0A;A_ThisMenuItemPos&#x0D;&#x0A;A_TickCount&#x0D;&#x0A;A_TimeIdle&#x0D;&#x0A;A_TimeIdlePhysical&#x0D;&#x0A;A_TimeSincePriorHotkey&#x0D;&#x0A;A_TimeSinceThisHotkey&#x0D;&#x0A;A_TitleMatchMode&#x0D;&#x0A;A_TitleMatchModeSpeed&#x0D;&#x0A;A_UserName&#x0D;&#x0A;A_WDay&#x0D;&#x0A;A_WinDelay&#x0D;&#x0A;A_WinDir&#x0D;&#x0A;A_WorkingDir&#x0D;&#x0A;A_YDay&#x0D;&#x0A;A_YEAR&#x0D;&#x0A;A_YWeek&#x0D;&#x0A;A_YYYY&#x0D;&#x0A;Clipboard&#x0D;&#x0A;ComSpec&#x0D;&#x0A;ErrorLevel&#x0D;&#x0A;True&#x0D;&#x0A;False&#x0D;&#x0A;</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="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="38B86B" 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="FF8040" 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>


new code
Code:
<NotepadPlus>
    <UserLang name="AHK Autohotkey" ext="ahk">
        <Settings>
            <Global caseIgnored="yes" />
            <TreatAsSymbol comment="yes" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">%00%00</Keywords>
            <Keywords name="Folder+">;***&#x0D;&#x0A;{</Keywords>
            <Keywords name="Folder-">;*&#x0D;&#x0A;}</Keywords>
            <Keywords name="Operators">&gt;</Keywords>
            <Keywords name="Comment"> 1/* 2*/ 0;</Keywords>
            <Keywords name="Words1">#AllowSameLineComments&#x0D;&#x0A;#ClipboardTimeout&#x0D;&#x0A;#CommentFlag&#x0D;&#x0A;#ErrorStdOut&#x0D;&#x0A;#EscapeChar&#x0D;&#x0A;#HotkeyInterval&#x0D;&#x0A;#HotkeyModIfierTimeout&#x0D;&#x0A;#Hotstring&#x0D;&#x0A;#Include&#x0D;&#x0A;#IncludeAgain&#x0D;&#x0A;#IfWinActive&#x0D;&#x0A;#IfWinExist&#x0D;&#x0A;#IfWinNotActive&#x0D;&#x0A;#IfWinNotExist&#x0D;&#x0A;#InstallKeybdHook&#x0D;&#x0A;#InstallMouseHook&#x0D;&#x0A;#KeyHistory&#x0D;&#x0A;#MaxHotkeysPerInterval&#x0D;&#x0A;#MaxMem&#x0D;&#x0A;#MaxThreads&#x0D;&#x0A;#MaxThreadsBuffer&#x0D;&#x0A;#MaxThreadsPerHotkey&#x0D;&#x0A;#NoEnv&#x0D;&#x0A;#NoTrayIcon&#x0D;&#x0A;#Persistent&#x0D;&#x0A;#SingleInstance&#x0D;&#x0A;#UseHook&#x0D;&#x0A;#WinActivateForce&#x0D;&#x0A;AutoTrim&#x0D;&#x0A;BlockInput&#x0D;&#x0A;Break&#x0D;&#x0A;Click&#x0D;&#x0A;ClipWait&#x0D;&#x0A;Continue&#x0D;&#x0A;Control&#x0D;&#x0A;ControlClick&#x0D;&#x0A;ControlFocus&#x0D;&#x0A;ControlGet&#x0D;&#x0A;ControlGetFocus&#x0D;&#x0A;ControlGetPos&#x0D;&#x0A;ControlGetText&#x0D;&#x0A;ControlMove&#x0D;&#x0A;ControlSend&#x0D;&#x0A;ControlSendRaw&#x0D;&#x0A;ControlSetText&#x0D;&#x0A;CoordMode&#x0D;&#x0A;Critical&#x0D;&#x0A;DetectHiddenText&#x0D;&#x0A;DetectHiddenWindows&#x0D;&#x0A;DllCall&#x0D;&#x0A;Drive&#x0D;&#x0A;DriveGet&#x0D;&#x0A;DriveSpaceFree&#x0D;&#x0A;Edit&#x0D;&#x0A;Else&#x0D;&#x0A;EndRepeat&#x0D;&#x0A;EnvAdd&#x0D;&#x0A;EnvDiv&#x0D;&#x0A;EnvGet&#x0D;&#x0A;EnvMult&#x0D;&#x0A;EnvSet&#x0D;&#x0A;EnvSub&#x0D;&#x0A;EnvUpdate&#x0D;&#x0A;Exit&#x0D;&#x0A;ExitApp&#x0D;&#x0A;FileAppend&#x0D;&#x0A;FileCopy&#x0D;&#x0A;FileCopyDir&#x0D;&#x0A;FileCreateDir&#x0D;&#x0A;FileCreateShortcut&#x0D;&#x0A;FileDelete&#x0D;&#x0A;FileGetAttrib&#x0D;&#x0A;FileGetShortcut&#x0D;&#x0A;FileGetSize&#x0D;&#x0A;FileGetTime&#x0D;&#x0A;FileGetVersion&#x0D;&#x0A;FileInstall&#x0D;&#x0A;FileMove&#x0D;&#x0A;FileMoveDir&#x0D;&#x0A;FileRead&#x0D;&#x0A;FileReadLine&#x0D;&#x0A;FileRecycle&#x0D;&#x0A;FileRecycleEmpty&#x0D;&#x0A;FileRemoveDir&#x0D;&#x0A;FileSelectFile&#x0D;&#x0A;FileSelectFolder&#x0D;&#x0A;FileSetAttrib&#x0D;&#x0A;FileSetTime&#x0D;&#x0A;FormatTime&#x0D;&#x0A;GetKeyState&#x0D;&#x0A;Gosub&#x0D;&#x0A;Goto&#x0D;&#x0A;GroupActivate&#x0D;&#x0A;GroupAdd&#x0D;&#x0A;GroupClose&#x0D;&#x0A;GroupDeactivate&#x0D;&#x0A;Gui&#x0D;&#x0A;GuiControl&#x0D;&#x0A;GuiControlGet&#x0D;&#x0A;HideAutoItWin&#x0D;&#x0A;Hotkey&#x0D;&#x0A;If&#x0D;&#x0A;IfEqual&#x0D;&#x0A;IfExist&#x0D;&#x0A;IfGreater&#x0D;&#x0A;IfGreaterOrEqual&#x0D;&#x0A;IfInString&#x0D;&#x0A;IfLess&#x0D;&#x0A;IfLessOrEqual&#x0D;&#x0A;IfMsgBox&#x0D;&#x0A;IfNotEqual&#x0D;&#x0A;IfNotExist&#x0D;&#x0A;IfNotInString&#x0D;&#x0A;IfWinActive&#x0D;&#x0A;IfWinExist&#x0D;&#x0A;IfWinNotActive&#x0D;&#x0A;IfWinNotExist&#x0D;&#x0A;ImageSearch&#x0D;&#x0A;IniDelete&#x0D;&#x0A;IniRead&#x0D;&#x0A;IniWrite&#x0D;&#x0A;Input&#x0D;&#x0A;InputBox&#x0D;&#x0A;IsLabel&#x0D;&#x0A;KeyHistory&#x0D;&#x0A;KeyWait&#x0D;&#x0A;ListHotkeys&#x0D;&#x0A;ListLines&#x0D;&#x0A;ListVars&#x0D;&#x0A;Loop&#x0D;&#x0A;Menu&#x0D;&#x0A;MouseClick&#x0D;&#x0A;MouseClickDrag&#x0D;&#x0A;MouseGetPos&#x0D;&#x0A;MouseMove&#x0D;&#x0A;MsgBox&#x0D;&#x0A;OnExit&#x0D;&#x0A;OnMessage&#x0D;&#x0A;OutputDebug&#x0D;&#x0A;Pause&#x0D;&#x0A;PixelGetColor&#x0D;&#x0A;Pixelsearch&#x0D;&#x0A;PostMessage&#x0D;&#x0A;Process&#x0D;&#x0A;Progress&#x0D;&#x0A;Random&#x0D;&#x0A;RegDelete&#x0D;&#x0A;RegRead&#x0D;&#x0A;RegWrite&#x0D;&#x0A;Reload&#x0D;&#x0A;Repeat&#x0D;&#x0A;Return&#x0D;&#x0A;Run&#x0D;&#x0A;RunAs&#x0D;&#x0A;RunWait&#x0D;&#x0A;Send&#x0D;&#x0A;SendMessage&#x0D;&#x0A;SendEvent&#x0D;&#x0A;SendInput&#x0D;&#x0A;SendMode&#x0D;&#x0A;SendPlay&#x0D;&#x0A;SendRaw&#x0D;&#x0A;SetBatchLines&#x0D;&#x0A;SetCapsLockState&#x0D;&#x0A;SetControlDelay&#x0D;&#x0A;SetDefaultMouseSpeed&#x0D;&#x0A;SetEnv&#x0D;&#x0A;SetFormat&#x0D;&#x0A;SetKeyDelay&#x0D;&#x0A;SetMouseDelay&#x0D;&#x0A;SetNumLockState&#x0D;&#x0A;SetScrollLockState&#x0D;&#x0A;SetStoreCapslockMode&#x0D;&#x0A;SetTimer&#x0D;&#x0A;SetTitleMatchMode&#x0D;&#x0A;SetWinDelay&#x0D;&#x0A;SetWorkingDir&#x0D;&#x0A;Shutdown&#x0D;&#x0A;Sleep&#x0D;&#x0A;Sort&#x0D;&#x0A;SoundBeep&#x0D;&#x0A;SoundGet&#x0D;&#x0A;SoundGetWaveVolume&#x0D;&#x0A;SoundPlay&#x0D;&#x0A;SoundSet&#x0D;&#x0A;SoundSetWaveVolume&#x0D;&#x0A;SplashImage&#x0D;&#x0A;SplashTextOff&#x0D;&#x0A;SplashTextOn&#x0D;&#x0A;SplitPath&#x0D;&#x0A;StatusBarGetText&#x0D;&#x0A;StatusBarWait&#x0D;&#x0A;StringCaseSense&#x0D;&#x0A;StringGetPos&#x0D;&#x0A;StringLeft&#x0D;&#x0A;StringLen&#x0D;&#x0A;StringLower&#x0D;&#x0A;StringMid&#x0D;&#x0A;StringReplace&#x0D;&#x0A;StringRight&#x0D;&#x0A;StringSplit&#x0D;&#x0A;StringTrimLeft&#x0D;&#x0A;StringTrimRight&#x0D;&#x0A;StringUpper&#x0D;&#x0A;Suspend&#x0D;&#x0A;SysGet&#x0D;&#x0A;Thread&#x0D;&#x0A;ToolTip&#x0D;&#x0A;Transform&#x0D;&#x0A;TrayTip&#x0D;&#x0A;URLDownloadToFile&#x0D;&#x0A;VarSetCapcity&#x0D;&#x0A;WinActivate&#x0D;&#x0A;WinActivateBottom&#x0D;&#x0A;WinClose&#x0D;&#x0A;WinGet&#x0D;&#x0A;WinGetActiveStats&#x0D;&#x0A;WinGetActiveTitle&#x0D;&#x0A;WinGetClass&#x0D;&#x0A;WinGetPos&#x0D;&#x0A;WinGetText&#x0D;&#x0A;WinGetTitle&#x0D;&#x0A;WinHide&#x0D;&#x0A;WinKill&#x0D;&#x0A;WinMaximize&#x0D;&#x0A;WinMenuSelectItem&#x0D;&#x0A;WinMinimize&#x0D;&#x0A;WinMinimizeAll&#x0D;&#x0A;WinMinimizeAllUndo&#x0D;&#x0A;WinMove&#x0D;&#x0A;WinRestore&#x0D;&#x0A;WinSet&#x0D;&#x0A;WinSetTitle&#x0D;&#x0A;WinShow&#x0D;&#x0A;WinWait&#x0D;&#x0A;WinWaitActive&#x0D;&#x0A;WinWaitClose&#x0D;&#x0A;WinWaitNotActive</Keywords>
            <Keywords name="Words2"></Keywords>
            <Keywords name="Words3">%A_&#x0D;&#x0A;A_AhkPath&#x0D;&#x0A;A_AhkVersion&#x0D;&#x0A;A_AppData&#x0D;&#x0A;A_AppDataCommon&#x0D;&#x0A;A_AutoTrim&#x0D;&#x0A;A_BatchLines&#x0D;&#x0A;A_CaretX&#x0D;&#x0A;A_CaretY&#x0D;&#x0A;A_ComputerName&#x0D;&#x0A;A_ControlDelay&#x0D;&#x0A;A_Cursor&#x0D;&#x0A;A_DD&#x0D;&#x0A;A_DDD&#x0D;&#x0A;A_DDDD&#x0D;&#x0A;A_DefaultMouseSpeed&#x0D;&#x0A;A_Desktop&#x0D;&#x0A;A_DesktopCommon&#x0D;&#x0A;A_DetectHiddenText&#x0D;&#x0A;A_DetectHiddenWindows&#x0D;&#x0A;A_EndChar&#x0D;&#x0A;A_ExitReason&#x0D;&#x0A;A_FormatFloat&#x0D;&#x0A;A_FormatInteger&#x0D;&#x0A;A_Gui&#x0D;&#x0A;A_GuiControl&#x0D;&#x0A;A_EventInfo&#x0D;&#x0A;A_GuiX&#x0D;&#x0A;A_GuiY&#x0D;&#x0A;A_GuiEvent&#x0D;&#x0A;A_GuiControlEvent&#x0D;&#x0A;A_GuiHeight&#x0D;&#x0A;A_GuiWidth&#x0D;&#x0A;A_Hour&#x0D;&#x0A;A_IconFile&#x0D;&#x0A;A_IconHidden&#x0D;&#x0A;A_IconNumber&#x0D;&#x0A;A_IconTip&#x0D;&#x0A;A_Index&#x0D;&#x0A;A_IPAddress1&#x0D;&#x0A;A_IPAddress2&#x0D;&#x0A;A_IPAddress3&#x0D;&#x0A;A_IPAddress4&#x0D;&#x0A;A_ISAdmin&#x0D;&#x0A;A_IsCompiled&#x0D;&#x0A;A_IsSuspended&#x0D;&#x0A;A_KeyDelay&#x0D;&#x0A;A_Language&#x0D;&#x0A;A_LastError&#x0D;&#x0A;A_LineNumber&#x0D;&#x0A;A_LineFile&#x0D;&#x0A;A_LoopField&#x0D;&#x0A;A_LoopFileAttrib&#x0D;&#x0A;A_LoopFileDir&#x0D;&#x0A;A_LoopFileExt&#x0D;&#x0A;A_LoopFileFullPath&#x0D;&#x0A;A_LoopFileLongPath&#x0D;&#x0A;A_LoopFileName&#x0D;&#x0A;A_LoopFileShortName&#x0D;&#x0A;A_LoopFileShortPath&#x0D;&#x0A;A_LoopFileSize&#x0D;&#x0A;A_LoopFileSizeKB&#x0D;&#x0A;A_LoopFileSizeMB&#x0D;&#x0A;A_LoopFileTimeAccessed&#x0D;&#x0A;A_LoopFileTimeCreated&#x0D;&#x0A;A_LoopFileTimeModified&#x0D;&#x0A;A_LoopReadLine&#x0D;&#x0A;A_LoopRegKey&#x0D;&#x0A;A_LoopRegName&#x0D;&#x0A;A_LoopRegSubkey&#x0D;&#x0A;A_LoopRegTimeModified&#x0D;&#x0A;A_LoopRegType&#x0D;&#x0A;A_MDAY&#x0D;&#x0A;A_Min&#x0D;&#x0A;A_MM&#x0D;&#x0A;A_MMM&#x0D;&#x0A;A_MMMM&#x0D;&#x0A;A_MON&#x0D;&#x0A;A_MouseDelay&#x0D;&#x0A;A_MyDocuments&#x0D;&#x0A;A_Now&#x0D;&#x0A;A_NowUTC&#x0D;&#x0A;A_NumBatchLines&#x0D;&#x0A;A_OSType&#x0D;&#x0A;A_OSVersion&#x0D;&#x0A;A_PriorHotkey&#x0D;&#x0A;ProgramFiles&#x0D;&#x0A;A_ProgramFiles&#x0D;&#x0A;A_Programs&#x0D;&#x0A;A_ProgramsCommon&#x0D;&#x0A;A_ScreenHeight&#x0D;&#x0A;A_ScreenWidth&#x0D;&#x0A;A_ScriptDir&#x0D;&#x0A;A_ScriptFullPath&#x0D;&#x0A;A_ScriptName&#x0D;&#x0A;A_Sec&#x0D;&#x0A;A_Space&#x0D;&#x0A;A_StartMenu&#x0D;&#x0A;A_StartMenuCommon&#x0D;&#x0A;A_Startup&#x0D;&#x0A;A_StartupCommon&#x0D;&#x0A;A_StringCaseSense&#x0D;&#x0A;A_Tab&#x0D;&#x0A;A_Temp&#x0D;&#x0A;A_ThisHotkey&#x0D;&#x0A;A_ThisMenu&#x0D;&#x0A;A_ThisMenuItem&#x0D;&#x0A;A_ThisMenuItemPos&#x0D;&#x0A;A_TickCount&#x0D;&#x0A;A_TimeIdle&#x0D;&#x0A;A_TimeIdlePhysical&#x0D;&#x0A;A_TimeSincePriorHotkey&#x0D;&#x0A;A_TimeSinceThisHotkey&#x0D;&#x0A;A_TitleMatchMode&#x0D;&#x0A;A_TitleMatchModeSpeed&#x0D;&#x0A;A_UserName&#x0D;&#x0A;A_WDay&#x0D;&#x0A;A_WinDelay&#x0D;&#x0A;A_WinDir&#x0D;&#x0A;A_WorkingDir&#x0D;&#x0A;A_YDay&#x0D;&#x0A;A_YEAR&#x0D;&#x0A;A_YWeek&#x0D;&#x0A;A_YYYY&#x0D;&#x0A;Clipboard&#x0D;&#x0A;ComSpec&#x0D;&#x0A;ErrorLevel&#x0D;&#x0A;True&#x0D;&#x0A;False&#x0D;&#x0A;</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="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="FF8040" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="38B86B" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="38B86B" 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="FF8040" 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>


I noticed that the semi colon was treated as a symbol, and the /* */ weren't, so I changed that.

The prefix is what messed up and made

gui blue, as well as
guiasdklasd

because it acted as a prefix, as long as it was in the word then it would turn blue, so I got rid of all that.

the comments had spaces in them, in other words, the comment was "/* " and "*/ " I removed the spaces, which reflects in the change of numbers
"1/* 1 2*/ 2 0;" to " 1/* 2*/ 0;"

-Kerry

_________________
String Manipulator - GrabIco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 11:43 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Argh, Yet Another Super-Scrolling Topic (YASST)...
I suppose you don't have choice, if that's the format of the XML file.
BTW, what is this Noepad++ editor? I didn't knew it.
Oh, it seems to be Notepad++...

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2006, 1:02 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for the updated file. It will be included in the next release.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2006, 8:49 am 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
.. Image

I've been scripting AHK in EditPlus all this time and I never knew about this directory until now.

Btw, in EditPlus if I put a (;) comment on the same line as a (example:) subroutine, the comment stays red and does not turn green.

It also thinks that when I use (gui :#) I'm calling a sunroutine and makes it red.

In NotePad++ when using the expression method of "%", everything after the symbol is orange until it hits another lone % symbol.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2006, 10:11 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
I'm aware Kahz :) but unfortunately I don't think Notepad++ supports a way to fix that

_________________
String Manipulator - GrabIco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2006, 10:17 am 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
I like EditPlus's method of conforming to AHK's style and syntax better than NotePad++. I just they would add way to collapse code with those nifty [ + ] things that NotePad has.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 14th, 2006, 4:55 pm 
Offline

Joined: August 10th, 2006, 4:59 pm
Posts: 18
With the following code, only the first variable appears orange:

FileAppend, %A_Now%|%A_UserName%|%myVar1%|%myVar2%`n, out.txt

Notepad++ v3.6
AHK v10.0.44.12


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2006, 8:48 pm 
theMightyjD wrote:
With the following code, only the first variable appears orange:

FileAppend, %A_Now%|%A_UserName%|%myVar1%|%myVar2%`n, out.txt


comma and (|) should be defined as an operator to seperate a unit. with the offered xml, the code will appear like this:
FileAppend, %A_Now%|%A_UserName%|%myVar1%|%myVar2%`n, out.txt

to fix it, edit the 12nd line of userDefineLang.xml like this:
Code:
<Keywords name="Operators">- ! &amp; ( ) , | + &lt; = &gt;</Keywords>


now you may see
FileAppend, %A_Now%|%A_UserName%|%myVar1%|%myVar2%`n, out.txt


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2006, 8:59 pm 
sorry about double posting. i hate myself. :cry:
and userDefineLang.xml :
Code:
<Keywords name="Operators">- ! &amp; ( ) , | + &lt; = &gt;</Keywords>


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group