Jump to content

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

Notepad++ syntax highlighting and autocompletion: v0.5, v0.1


  • Please log in to reply
28 replies to this topic
infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008
[*:2tybjj8t]This is my version of Notepad++'s UserDefinedLang.xml for AutoHotkey syntax highlighting. Made for Notepad++ v5.6.6

Current: v0.5
Download userDefLang.xml

The file goes in %appdata%\Notepad++. Remember to restart npp after the file is changed.

[*:2tybjj8t]I also have an API file for autocompletion of functions and commands with param tips on functions.

Current: v0.1
Download AutoHotkey.xml

Put it in %InstallDir%\plugins\APIs. Remember to restart npp after changes.
Then make sure to go into Settings > Preferences > Backup/Autocompletion tab and turn autocompletion on.
(I prefer: both checked, top option, and "3 th" character)

[*:2tybjj8t]You can download my current sylers.xml here:

Current: v0.1
Download stylers.xmlA screenshot: (v0.4)
Posted Image

All Versions:[*:2tybjj8t]userDefineLang.xml v0.1
[*:2tybjj8t]userDefineLang.xml v0.3
[*:2tybjj8t]userDefineLang.xml v0.4
[*:2tybjj8t]userDefineLang.xml v0.5
[*:2tybjj8t]AutoHotkey.xml v0.1
[*:2tybjj8t]stylers.xml v0.1


Here are some other topics related to AHK code editing in NPP:For those who use Notepad++ (aka npp)
Notepad++ 5.0 autocomplete
Bug in Notepad++ syntax highlighting
Notepad++ definition

infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008
Updated.

[*:1rilqv21]Added commas, parens, and other operators to the Operators section. This fixes cases where quoted text comes directly after a paren or other operator but doesn't highlight properly. It also simplifies and fixes command keywords without trailing spaces.
[*:1rilqv21]Added #NoEnv (forgot last time)
[*:1rilqv21]Broke the % highlighting somewhat. :(

infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008
Updated
[*:3kvgm4vk]Added missing keywords
[*:3kvgm4vk]Fixed more operators so keywords are recognized better
[*:3kvgm4vk]Changed the colors around a little bit
[*:3kvgm4vk]Lost v0.2 :(

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
Can I see a screenshot before I decide to switch?

I'm also to lazy to 'test' it.

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008

I'm also too lazy to 'test' it.

Whoa! I didn't know there was such a thing as being too lazy. :shock:

I added the screenshot. :)

[edit]I cropped the picture[/edit]
[edit] ...several times[/edit]

  • Guests
  • Last active:
  • Joined: --
ehm, might consider switching from notepad2 to ++

infogulch-nli
  • Guests
  • Last active:
  • Joined: --
always glad to win over converts :D

infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008
Updated.

[*:7zyrzgjo]Slight additions to UserDefineLang.xml.
[*:7zyrzgjo]Linked to all versions in first post.
[*:7zyrzgjo]Added version numbers to all xml files.
[*:7zyrzgjo]Added AutoHotkey.xml API autocompletion! (see first post for details)
[*:7zyrzgjo]Updated screenshot with better example code and to show off autocompletion.
[*:7zyrzgjo]Removed code from first post. (you have to download from files now)
[*:7zyrzgjo]Checked to make sure it works with newest Notepad++ version (5.6.5)

infogulch
  • Moderators
  • 717 posts
  • Last active: Jul 31 2014 08:27 PM
  • Joined: 27 Mar 2008
Updated.

[*:2p8ffv0d]Added a couple missing keywords.
[*:2p8ffv0d]Added a link to my current stylers.xml for anyone that wants it.

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
thank you.
great work :)

rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .


polyethene
  • Members
  • 5519 posts
  • Last active: May 17 2015 06:39 AM
  • Joined: 26 Oct 2012
Excellent work, I've finally made the switch from toralfs PSPad. You should ask the Notepad++ developers to include your AutoHotkey files in their official release, then Chris can recommend it in the documentation as the preferred editor.

autohotkey.com/net Site Manager

 

Contact me by email (polyethene at autohotkey.net) or message tidbit


Delusion
  • Members
  • 272 posts
  • Last active: Jul 13 2014 09:04 PM
  • Joined: 16 Jul 2008
nice! thank you for this
maybe someone can create a whole package....
a portable notepad++ with everything needed for ahk
it has been done before but its outdated

functionlist plugin doesnt seem to work for me on this new version

heres the rules i use on my older version of npp though

<!-- m -->https://ahknet.autoh... ... tRules.xml<!-- m -->
QuickSubs | Popcorn Movie Catalog
All my scripts are just in AutoHotkey v1.0.48.05

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007
Perhaps post the material on the AutoHotkey wiki so more people can maintain it and fix any bugs that might arise for future versions of AutoHotkey and/or Notepad++

Arion
  • Members
  • 7 posts
  • Last active: Mar 17 2012 01:58 AM
  • Joined: 21 Oct 2008
All I always wanted.

Thanks a lot! (Y)

AutoJohn
  • Guests
  • Last active:
  • Joined: --
How do you activate userdeflang.xml?
Doesn't seem to work on my Windows 7 computer.

Whats the trick?