ColdFusion Lexer and NPP after (7.5.9)
-
The ColdFusion Plugin by Ben Bluemel work fine up to Version 7.5.9 (32 bit) bit I cannot get it to work on any later versions. The instructions for 7.6 advise to make a folder under plugins but that does not work for me. Unfortunately Ben has defected to using sublime so is no longer supporting the ColdFusion plugin.
Does anyone know how to get the ColdFusion plugin working again?
Regards
Mike
-
Hello @Mike-Graham
In my case it run only in x86 version of N++. I didn’t use ColdFusion plugin and I don’t know for what is it and how to use it.
Step 1
- Download some portable Notepad++ package 32-bit x86
- Download nppColdFusion-0.8.1.zip
- Download sqlite-dll-win32-x86-3070701.zip
Step 2
- Extract every archive
Step 3
- Create a folder named
nppColdFusion
in\npp.7.7.bin\plugins
dir- Place the extracted
nppColdFusion.dll
file in that folder (i.e in\npp.7.7.bin\plugins\nppColdFusion
)
- Place the extracted
- Place the
nppColdFusion.db3
andnppColdFusion.xml
files fromconfig
folder in the\npp.7.7.bin\plugins\Config
- Place the extracted
sqlite3.def
andsqlite3.dll
files in the Notepad++ directory (not the plugins one) - as it is mentioned at the Wiki page of the ColdFusion plugin - i.e. in\npp.7.7.bin
dir (where thenotepad++.exe
lives)
-
With the old PluginManager it was possible to declare a plugin package as a library and to define a dependency to such a library in other plugins. This is also the case with the ColdFusion Lexer plugin, it depends on the SQLite package.
The ColdFusion Lexer plugin wants a certain version of SQLite which can be downloaded >>> here <<<. It’s a ZIP file that contains the file sqlite.dll. Unpack that file to your Notepad++ installation directory, i.e. where your notepad++.exe resides.
The ColdFusion Lexer plugin package can be downloaded >>> here <<<. In your Notepad++ plugins directory create a folder named
nppColdFusion
(i.e. with exactly the same name like the plugins DLL file name excluding the.dll
extension) and unpack the filenppColdFusion.dll
to that folder. Furthermore the plugin package contains a folder namedconfig
containing the filesnppColdFusion.db3
andnppColdFusion.xml
. Unpack these two files to your Notepad++ plugins config directory. For a local installation this is%AppData%\Notepad++\plugins\config
and for a portable installation this is<Notepad++-dir>\plugins\config
.@rddim
Oh, to late. Was only able to see your posting after I had posted. -
@rddim can you clarify:
Are you saying that the portable version is required to make the CFML lexer work?
(I’m not able to get it working using your instructions; I’m using the 32-bit installer-based version, since I also rely on other plugins that only work in 32 bit.)
-
Nevermind, figured out the problem: Does not associate file extensions by default. (Now to figure out how to make that work again.)
-
No, the portable version is not required. I just use it for the testing, because it is more easy. Also in my life I never used an installer-based version. So you can try the @dinkumoil’s explanation, but please note that the SQLite version in my post is different. I just follow the instructions from CFML repo. I hope you can find a sollution.
-
@rddim said:
but please note that the SQLite version in my post is different
I’ve used the link to SQLite which I found in old PluginManager’s XML plugin list.
-
Tried steps above several times.
Tried .xml and .db3 in config, in plugins and in nppColdfusion. Get a consistent error loading a .cfm file of:
“nppColdFusion Error
ListAll tags length is 0
OK”
No indication of plugin working. Notepad++ 7.5.9 (32bit) -
It sounds like some folks have managed to get
nppColdFusion
working by changing the folder structure, and others (including myself) find Notepad++ crashing even when we follow those instructions scrupulously.I’ve found an alternative to share for those in the latter group (and, perhaps, everyone): Downloading a UDL (User Defined Language) file from Notepad++ directly. Steps as I followed them are:
- Navigate to the User Defined Language Files page at http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files.
- Scroll down to “Coldfusion” [sic], right-click on it, and “Save Link As…” to some location on your hard drive. (“Save Link As…” is the wording in Firefox; it may be slightly different in other browsers.) The default name of the file will be userDefineLang_CF9.xml.
- Open Notepad++ and select “Language > Define Your Language…” from the menu.
- Click the “Import…” button, and select the userDefineLang_CF9.xml file you just saved.
- At that point, exit from the User Defined Language dialog and Notepad++ entirely. (There should be no need to save the file after importing it; saving it should be automatic even though it doesn’t yet appear in the list under “Languages”.)
- Re-open Notepad++. Now, you should see “ColdFusion” under the “Language” menu (at the bottom – not under the letter C).
- Open a
*.cfm
or*.cfc
file, and you will find it code-highlighted.
-
@Joe-DeRose Would you be able to post that XML file? The link you specified in step 1 doesn’t appear to be available anymore.
-
@Michael-Benoit , the user @Joe-DeRose hasn’t been here since that single post.
In the intervening 8 months, that old collection has been moved to https://github.com/notepad-plus-plus/userDefinedLanguages, and the specific file he mentioned is
https://raw.githubusercontent.com/notepad-plus-plus/userDefinedLanguages/master/UDLs/ColdfusionCF9_bySpenster.xml