Jump to content

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

Notepad++ syntax highlighting


  • Please log in to reply
24 replies to this topic
webPragmatist
  • Members
  • 33 posts
  • Last active: Dec 27 2007 09:35 PM
  • Joined: 18 May 2007
Has anyone made a User Defined syntax highlighting set for Notepad++?

batagy
  • Members
  • 15 posts
  • Last active: Mar 10 2011 11:00 AM
  • Joined: 21 Feb 2007

Has anyone made a User Defined syntax highlighting set for Notepad++?

Hi!

That exists officially. It's bundled with the AutoHotkey installer. Check the following folder on your PC:
C:\Program Files\AutoHotkey\Extras\Editors\Notepad++

The "userDefineLang.xml" file is the syntax highlighting, it should be put to C:\Documents and Settings\...user...\Application Data\Notepad++.
The "AHK Autohotkey.api" is the auto-completion database for AutoHotkey language. This should be put to C:\Program Files\Notepad++\plugins\APIs

:wink:

neXt
  • Members
  • 549 posts
  • Last active: May 20 2015 02:38 AM
  • Joined: 18 Mar 2007
Wow, i didn't kniw this one, thanks for this topic :D !!!

neXt
  • Members
  • 549 posts
  • Last active: May 20 2015 02:38 AM
  • Joined: 18 Mar 2007
I have a question though, why aren't events, functions and directives highlighted, wouldn't it be easier to read your code?

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
it depends on if the editor supports it. Try PSPad (my favorite). It has at least directives highlighted.

batagy
  • Members
  • 15 posts
  • Last active: Mar 10 2011 11:00 AM
  • Joined: 21 Feb 2007
Maybe Notepad++ also supports that, but the current syntax highlighting file does not contain that yet. Somebody should do it...

PhiLho
  • Moderators
  • 6850 posts
  • Last active: Jan 02 2012 10:09 PM
  • Joined: 27 Dec 2005
A useful work would be to look in C:\Program Files\AutoHotkey\Extras\Editors\Syntax\Scripts (path might vary): there are scripts to generate some editor-specific syntax files from base (raw/generic) syntax files. The more scripts are made for your particular editor, the easier it will be for Chris to update them.

I should do this task for SciTE...

Now, new keywords don't get added every day, yet it is useful to ensure everything is in synch.
Posted Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")

ingenious
  • Members
  • 3 posts
  • Last active: Apr 28 2010 11:29 PM
  • Joined: 30 Mar 2008
Hi,

I know this is not a Notepad++ forum, but does anybody know where to put syntax files in Notepad++ portable? I really love Notepad++ having a self-contained directory without configuration files scattered across my system. But I cannot see any dedicated folders for syntax files...

EDIT: OK, found it - just put the xml in Notepad++ root folder ;)

tidbit
  • Administrators
  • 2709 posts
  • Hates playing Janitor
  • Last active: Jan 15 2016 11:37 PM
  • Joined: 09 Mar 2008
heh. I've just been using the inbuilt "Autoit"
seems to work just fine...

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


Meads
  • Guests
  • Last active:
  • Joined: --

heh. I've just been using the inbuilt "Autoit"
seems to work just fine...


I am new to AutoHotkey and have only used Notepad ++ in it's default configuration.

How do I use the above "builtin Autoit" syntax addin?

thanks

irontomato
  • Members
  • 64 posts
  • Last active: Jul 17 2015 06:23 PM
  • Joined: 23 Jun 2008
In notepad++ click Languages -> select 'Autoit' or select 'AHK Autohotkey' if you have installed the syntax plugin.

Mazora
  • Guests
  • Last active:
  • Joined: --
Only sleep seems to be highligthed in color :(

have I done something wrong ( in NOtepad++)

lagomorph
  • Members
  • 403 posts
  • Last active: May 15 2014 03:41 PM
  • Joined: 02 Apr 2010
whoaaa...notepad++ is so cool! I love it. didn't know it existed, been using regular old notepad all this time...! thanks for posting about it and how to get AHK on it.

letmein123
  • Members
  • 101 posts
  • Last active: Feb 17 2012 11:56 PM
  • Joined: 18 May 2010
have you guys had any issues trying to make notepad++ your default? i followed the steps and it still doesnt work.

The Warden
  • Guests
  • Last active:
  • Joined: --
What do you mean by "default"?

If you want to make it your default editor for AutoHotkey scripts, then right click on the script file, and select "Open with". Do not select one of the of the listed programmes.

Browse for Notepad++, and select "Always use this programme" before selecting OK.