Jump to content


Photo

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


  • Please log in to reply
28 replies to this topic

#1 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 12 January 2010 - 05:31 PM

[*: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

#2 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 20 January 2010 - 12:07 AM

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. :(

#3 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 22 January 2010 - 03:35 AM

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 :(

#4 tidbit

tidbit
  • Moderators
  • 2291 posts

Posted 22 January 2010 - 03:43 AM

Can I see a screenshot before I decide to switch?

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


#5 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 22 January 2010 - 04:28 AM

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]

#6 Guests

  • Guests

Posted 22 January 2010 - 04:57 PM

ehm, might consider switching from notepad2 to ++

#7 infogulch-nli

infogulch-nli
  • Guests

Posted 22 January 2010 - 05:09 PM

always glad to win over converts :D

#8 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 25 January 2010 - 02:11 AM

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)

#9 infogulch

infogulch
  • Moderators
  • 717 posts

Posted 27 January 2010 - 01:58 AM

Updated.

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

#10 tidbit

tidbit
  • Moderators
  • 2291 posts

Posted 27 January 2010 - 02:25 AM

thank you.
great work :)

#11 polyethene

polyethene

    Administrator

  • Administrators
  • 5473 posts

Posted 27 January 2010 - 11:41 AM

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.

#12 Delusion

Delusion
  • Members
  • 272 posts

Posted 27 January 2010 - 01:56 PM

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 -->http://www.autohotke... ... tRules.xml<!-- m -->

#13 SoLong&Thx4AllTheFish

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts

Posted 27 January 2010 - 02:26 PM

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++

#14 Arion

Arion
  • Members
  • 7 posts

Posted 02 February 2010 - 11:43 PM

All I always wanted.

Thanks a lot! (Y)

#15 AutoJohn

AutoJohn
  • Guests

Posted 07 February 2010 - 01:09 PM

How do you activate userdeflang.xml?
Doesn't seem to work on my Windows 7 computer.

Whats the trick?