Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AutoHotkey SyntaxHighlight for Notepad++


  • Please log in to reply
53 replies to this topic
jNizM
  • Members
  • 701 posts
  • Last active: Apr 22 2014 03:25 PM
  • Joined: 01 Aug 2012
Setup Notepad++ for AutoHotkey
(Notepad++ v6.5.1) change.log

------------------------------------------------------------------------
[Syntax-Highlighting]
1. Download userDefineLang_AHK.xml (Right-click and choosing save as target...)
2. Save it to the right location Notepad++\
3. Start Notepad++ and click on Menu Language --> Define your language
4. Import your userDefineLang
5. Restart Notepad++

1. Default Theme (v0.1)
download_16.png Download | Preview
2. Lazy Theme (v0.1)
download_16.png Download | Preview
3. ...tba

------------------------------------------------------------------------
[Auto-Completion]
1. Download AutoHotkey.xml (Right-click and choosing save as target...)
2. Save it to the right location Notepad++\plugins\APIs\
3. Start Notepad++ and click on Menu Settings --> Preferences
4. Click on Auto-Completion and activate Enable auto-completion on each input
5. (recommendation: From 2th character, Function completion, Function parameters hint on input)
download_16.png Download | Preview

------------------------------------------------------------------------
[Plugins]
1. Download PlugIns
2. Save it to the right location Notepad++\plugins\
Notepad++ loads plugins at startup.
To load a new plugin, you can either close and restart Notepad++, or use the Settings --> Import --> Import plugin command.

Useful Plug-in's
* (AutoSave) allows to automatically save the currently open files based on a timer schedule (default is 1 min) and/or upon the application losing focus.
* (Compare Plugin) A very useful diff plugin to show the difference between 2 files (side by side).
* (DBGP plugin) This is a php debugger (XDebug) which talks DBGP protocol. Use this plugin to transform your Notepad++ to a php IDE.
* (Function List) offers a list of functions (or sections) according of the language of current document, in order to access to the function or section you need quickly.
* (LanguageHelp) allows to run a language specific help file (CHM, HLP, PDF) and search for the keyword under the cursor.
* (RunMe) allows to execute the currently open file, based on its shell association.
* (TextFX) brings a number of useful features

More Plugins available here and here

------------------------------------------------------------------------
Downloads:
AHK: AutoHotkey & AutoHotkey more
NPP: Installer, zip package, 7z package & minimalist package

Portable Package with Syntax-Highlight, Autocomplete & PlugIns (AutoSave, RunMe, TextFX):
> npp.6.5.bin.7z
> npp.6.5.bin.zip

Edited by jNizM, 05 February 2014 - 08:40 AM.


twiz
  • Members
  • 33 posts
  • Last active: Oct 08 2013 11:47 PM
  • Joined: 08 Nov 2011
You can also use the Plugins Manager to install plugins.
Plugins -> Plugins Manager -> Show Plugins Manager

I cannot tell you how much I love and frequently use the Compare and TextFX plugins you mentioned above.

aRt)Y
  • Members
  • 447 posts
  • Last active: Oct 03 2013 08:40 PM
  • Joined: 17 Nov 2011
Functions List plugin doesn't work.
Each time I try adding the ahk rules it shuts down.

ruespe
  • Members
  • 567 posts
  • Last active: Dec 20 2013 06:21 PM
  • Joined: 17 Jun 2008
Unfortunatelly function list doesn't work eith latest versions of SciLexer.dll. I use version 2.2.5.0. That does all I need, because I don't want to miss the functionality of function list.

But you also can use SourceCookifier

aRt)Y
  • Members
  • 447 posts
  • Last active: Oct 03 2013 08:40 PM
  • Joined: 17 Nov 2011

But you also can use SourceCookifier

Importing the AutoHotkey.xml as language erros.

Doesn't seem to work.

FusionFire
  • Members
  • 152 posts
  • Last active: Mar 18 2014 02:01 PM
  • Joined: 02 Dec 2011
I can't get the Sytax highlighting to work. Click on menu - > Custom - > Add a custom one (where?)

jNizM
  • Members
  • 701 posts
  • Last active: Apr 22 2014 03:25 PM
  • Joined: 01 Aug 2012
@FusionFire:
Language --> Define your language

gbernardi
  • Members
  • 8 posts
  • Last active: Dec 07 2012 10:33 AM
  • Joined: 20 Nov 2012
Am I the only one getting a "Fail to import" error when selecting the xml file?

FusionFire
  • Members
  • 152 posts
  • Last active: Mar 18 2014 02:01 PM
  • Joined: 02 Dec 2011

@FusionFire:
Language --> Define your language


I don't have any option to "define the lanaguage" ? User Defined doesn't do anything besides indent my code !

Posted Image

jNizM
  • Members
  • 701 posts
  • Last active: Apr 22 2014 03:25 PM
  • Joined: 01 Aug 2012
@gbernardi
Can you make a Screenshot of error?
Which Version of Notepad++?

@FusionFire
Upgrade your Notepad++ to Version 6.2.2
Dl-Links see top Post

gbernardi
  • Members
  • 8 posts
  • Last active: Dec 07 2012 10:33 AM
  • Joined: 20 Nov 2012

@gbernardi
Can you make a Screenshot of error?
Which Version of Notepad++?


I don't understand what happened.. I've done exactly the same procedure I performed yesterday and now it works. The only thing that changed was a reboot of the system, but I don't know if that's what made the import possible.

So now it is working, although yesterday I didn't think that this highlighting scheme won't work with the dark solarized theme xD
Do you know if there's a version working with such theme?

Thanks anyway

jNizM
  • Members
  • 701 posts
  • Last active: Apr 22 2014 03:25 PM
  • Joined: 01 Aug 2012
@gbernardi
not yet (only for white theme atm)
change the fgColor="" & bgColor="" value (userDefineLang_AHK.xml)

Maybe in the next few days I make one for 'Monokai'

gbernardi
  • Members
  • 8 posts
  • Last active: Dec 07 2012 10:33 AM
  • Joined: 20 Nov 2012

@gbernardi
not yet (only for white theme atm)
change the fgColor="" & bgColor="" value (userDefineLang_AHK.xml)

Maybe in the next few days I make one for 'Monokai'


Cool. Thanks for the help ;)

FusionFire
  • Members
  • 152 posts
  • Last active: Mar 18 2014 02:01 PM
  • Joined: 02 Dec 2011

@gbernardi
not yet (only for white theme atm)
change the fgColor="" & bgColor="" value (userDefineLang_AHK.xml)

Maybe in the next few days I make one for 'Monokai'


Delete it or add something to those values ?

jNizM
  • Members
  • 701 posts
  • Last active: Apr 22 2014 03:25 PM
  • Joined: 01 Aug 2012
@FusionFire

e.g.
Default Theme:
<WordsStyle name="COMMENTS" styleID="1" fgColor="008000" bgColor="F0F0F0" fontName="" fontStyle="2" nesting="0" />


Monokai Theme:
<WordsStyle name="COMMENTS" styleID="1" fgColor="75715E" bgColor="272822" fontName="" fontStyle="2" nesting="0" />


fgColor = Font Color
bgColor = Background Color