I’ve uploaded a new package to:
http://labs.soundrage.com/CF8NPP.zip
It includes a chm for CF8 help, the bulk of the size. It’s servicable, but the conversion from html to chm was not perfect.
It includes a script for Inno Setup, which I won’t be able to get back to for a while, so if someone is interested in picking that up, feel free. Otherwise, I’ll get to it when I get to it. I have it kind of working but for a setup package, that’s really not good enough, and there is a lot more work to be done on it.
The key items of interest are:
1) The shortcuts.xml has a line for launching keyword sensitive help right from the editor to Adobe’s LiveDoc’s or to the local help file. I had to bump the php help off of the F1 key for my own setup, but feel free to do whatever you wish. CTRL-F1 and ALT-F1 launch the help, and highlight the keyword. The shortcuts.xml file needs to be in the folder with your Notepad++.exe, default is C:\Program Files\Notepad++\
2) The keywords themselves are identified in the a\apis\coldfusion8.api file.
3) The (User App)\Notepad++\InsertExt.ini needs to contain regular expressions to mark the beginning and ending of a function, and how to pick out the function name. These will show up on the function list, so you can click on the function name and jump straight to it.
[User Languages]
Count User Languages=2
Name 1=ColdFusion8
KeyWBodyBeg 1=
KeyWBodyEnd 1=
MatchCase 1=0
Count Comment 1=3
Comment P1.1.1=
Comment P1.2.1=
Comment P2.2.1=
Count Syntax 1=2
Syntax P1.1.1= Syntax P2.1.1=\"\t.*\>
Syntax P3.1.1=[A-Za-z]*
Syntax P4.1.1=
Syntax P5.1.1=
Syntax P6.1.1=
Syntax P1.2.1=cffunction[\t ]*name[\t ]*\=[\t ]*\"
Syntax P2.2.1=
Syntax P3.2.1=[A-Za-z_]*
Syntax P4.2.1=
Syntax P5.2.1=
Syntax P6.2.1=
4) Finally, our old friend, UserDefinedlanguages.xml, needs ColdFusion8 set up inside of it. Basically, you take the contents of UserDefinedLanguages_Coldfusion8.xml, and insert it into the appropriate area inside of the real/active UserDefinedLanguages.xml. This also sits in the (User App) folder, which is, for me, C:\Documents and Settings\Howard\Application Data\Notepad++\, so yours will be something like that.
I’m posting this over with the Notepad++ people, and will followup there.
For InnoSetup, information can be found at:
http://www.istool.org/ – The extension to InnoSetup, which adds some good stuff.
http://www.innosetup.org/ – The base InnoSetup package.
Hopefully, it will be helpful to someone. I just enjoyed the diversion for a few hours.
November 18, 2007 at 5:41 pm
[...] (Continued) [...]
July 26, 2008 at 12:56 am
Never used notepad++ before. I tried to setup but see no CF on the Lang dropdown. So:
1) replace the shortcuts.xml with yours? or?
3) no such InsertExt.ini file found. ???
4) >>you take the contents of UserDefinedLanguages_Coldfusion8.xml, and insert it into the appropriate area
Which is where exactly?
Finally,
>>It includes a script for Inno Setup
I don’t see any setup exe in the zip. Anyway, are you saying it works or doesn’t?
Thanks.
August 11, 2008 at 2:46 am
nothing??
August 16, 2008 at 5:23 am
I also can’t get this to work.
October 1, 2008 at 8:22 am
Great tutorial! I had read a couple others and they had left out the Application Data step…the moment I updated that one and closed and reopened it worked like a charm! Thanks! Appreciated greatly!
December 15, 2008 at 2:54 pm
Seems to work except for the comments… so far. I will do further testing while I start using it.
1) Just Copy the shortcuts.xml it in the AppData folder of Notepad++ (though it looked the same to me using Notepad++ v5.1)
2) I dropped in the .api file in C:\Program Files\Notepad++\plugins\APIs .. the rest are XML files, so don’t know if it really matters that this is an .api file.
3) Created the INI file at (User App)\Notepad++\InsertExt.ini and then copied the above code
4) Dropped in (User App)\Notepad++\userDefineLang.xml — again.. spelled differently then what was shown above.
.. I didnt do anything with the InnoSetup.. nor added any of the other files in the Notepad++ folders. Is not the help file made for Dreamweaver?
Anyways… the “ColdFusion” now shows up in the Language menu.. right before the User Defined. I closed NPP and opened a .cfm file into it and it works.. you can change the colors if you want to match highlighting in HomeSite or Dreamweaver. I suppose that one can open up the program files\Npp\ langs.xml .. and create a line for ColdFusion.
December 26, 2008 at 7:05 am
Hi all,
Same problem i also faced…
Every one think if we place in C:\program files\nodepad++\
But please that is not the place in my case.
type
%userprofile%/application Data/notepad++
in run menu
and place all files respective to this folder.
This is because while installing u might have elected install for all users in the system.
was it was usefull?
January 9, 2009 at 8:31 am
To easily find your doc and settings folder, don’t forget the handy %APPDATA% environment variable!
February 25, 2009 at 11:28 am
After further use and installing it in a computer class for our ColdFusion class, I found 1) the CF Comment does not work properly 2) The API file doesn’t seem to do anything, I just get the color highlighting.
March 18, 2009 at 3:50 am
>>CTRL-F1 and ALT-F1 launch the help, and highlight the keyword.
ALT-F1 brings up the Notetab licence. CTRL-F1 does nothing.
Are we supposed to edit your file and change this line to something else?
http://www.php.net/%20$(CURRENT_WORD)
To what???
Other than do syntax highlighting, does this package do anything else?
What are the cf help files for? They don’t do anything either.
???
Thanks.
March 23, 2009 at 1:10 pm
It appears that the syntax highlighting file (userDefineLang.xml) doesn’t contain all of the new CF8 tags. isn’t included, and possibly others are missing too.
April 3, 2009 at 8:05 am
I followed the steps of William Frankhouser exactly but it did not work. After restarting Notepad++ I see the option “User Defined” in the languages drop down but no languages are listed under it. If I select the “User Defined” language it italics all text. Like William I did not already have a userDefineLang.xml or UserDefinedlanguages.xml. I also had to create my own InsertExt.ini and copy the code listed above into it. Any possible suggestions? I’d really like to stop using Dreamweaver.
April 22, 2009 at 5:54 pm
Did anybody ever get the comments working?
As far as I can tell, adding as operators prevents comments from working. :-( other than that it is pretty cool!
May 4, 2009 at 10:45 pm
refer to harsha above
May 5, 2009 at 6:47 am
I have tried following the directions above, and they are FAR too complicated to be worth trying to figure out. If the directions are made simpler and updated to the most recent version of Notepad++, then I might consider it, but for now, I will continue using jEdit for my ColdFusion coding. Thanks.
May 5, 2009 at 10:03 am
Worked perfectly the first time. I downloaded, copied the zip contents the the unicode version folder of NP++, closed and opened, and it worked perfectly. Thanks for a great tool!
May 6, 2009 at 3:05 pm
Where is the unicode version folder of NP++? If it was so easy for you, would you mind expounding on the process, because I still don’t know how to do it. Best Regards. Thanks!
June 17, 2009 at 6:25 am
I got it working after reading the comments to copy the XML file into the documents & settings\(user)\application data\Notepad++ folder instead of the Program Files one. Thanks for putting this together and for the comments too!
June 19, 2009 at 4:15 am
When I read the instructions/comments above, I thought only the userLang.xml files needed to go in \(user)\application data\, and that did not work for me. Then I installed the whole zip file there (and NOT under Program Files), and it did work. Thanks!
August 12, 2009 at 5:55 am
It worked for me when added the
i Created the INI file at (User App)\Notepad++\InsertExt.ini and then copied the above code .
August 26, 2009 at 12:58 pm
I was struggling for this to work and then I found this article.
http://bigkidsdidit.co.uk/coldfusion-language-in-notepad
Thanks
September 23, 2009 at 7:25 am
For the online help I had to replace the line with the php help with this:
http://www.cfquickdocs.com/cf8/#$(CURRENT_WORD)
October 8, 2009 at 5:57 am
The download link no longer works. Can someone send me a copy?
dab [at] bowesmail [dot] com
October 29, 2009 at 7:57 pm
Yes, alas the link is deceased. Is there another location on ye’ ol’ internet to find it? No luck with google…
October 30, 2009 at 9:45 am
Also looking. What up?
November 4, 2009 at 6:41 pm
thanks for this help. but the download link for the files has been broken already. could someone make a mirror?
November 5, 2009 at 3:57 am
Same – download link doesn’t work – links to an irritating spam page instead. Would appreciate this.
November 5, 2009 at 5:45 pm
I’d like a copy of the download too, I don’t really like editing CF in Dreamweaver.
November 6, 2009 at 1:45 am
I published working link about 2 days ago, but it is still “awaiting moderation”. Maybe this forum dislike links, or my email is suspicious…
November 6, 2009 at 1:59 am
uploaded to another location http://sites.google.com/site/msyu812/files-1/CF8NPP.zip
November 6, 2009 at 2:00 am
original Insertion plugin would not work with up-to-date unicode NPP, but some kind person compiled it for Unicode (thanks): http://www.mailinglistarchive.com/html/notepad-plus-plus@lists.sourceforge.net/2009-03/msg00677.html
November 10, 2009 at 12:32 am
I suggest using remastered chm reference: http://sites.google.com/site/msyu812/files-1/ColdFusion8Reference.zip with LanguageHelp NPP plugin by Franco Stellari
November 10, 2009 at 12:42 am
LanguageHelp NPP plugin by Franco Stellari: http://sites.google.com/site/fstellari2/npp_plugins (take latest build)
I see, this forum suspends posts having more than 1 link… so 2 of my messages are still awaiting moderation
November 10, 2009 at 11:25 pm
Uploaded ColdFusion 9 reference:
http://sites.google.com/site/msyu812/files-1/ColdFusion9Reference.zip also for use with Language Help Plugin for NPP
November 11, 2009 at 12:17 am
It is convenient to remap language help from Ctrl+F1 to F1. In the Main menu of shortcut mapper find About (in my case it is on line 122) and assign it to some unused key combination like Ctrl+Alt+Shift+F1 (or None). Then, in Plugin commands, find Help item of LanguageHelp plugin. Unfortunately, there is a lot of similar “Help” items in the list. You may locate it by original Ctrl+F1 assignment. Other option: you can manually edit shortcuts.xml: PluginCommand moduleName=”LanguageHelpU.dll” internalID=”0″ Ctrl=”no” Alt=”no” Shift=”no” Key=”112″ . Of course, there can by 2 shortcuts.xml files, in NPP installation directory and in user settings, you should edit the latter.