• Login
Community
  • Login

ColdFusion Lexer and NPP after (7.5.9)

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
11 Posts 8 Posters 7.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mike Graham
    last edited by May 22, 2019, 6:14 AM

    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

    D 1 Reply Last reply May 22, 2019, 8:48 AM Reply Quote 0
    • R
      rddim
      last edited by rddim May 22, 2019, 8:36 AM May 22, 2019, 8:34 AM

      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 nppColdFusion.db3 and nppColdFusion.xml files from config folder in the \npp.7.7.bin\plugins\Config
      • Place the extracted sqlite3.def and sqlite3.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 the notepad++.exe lives)
      E 1 Reply Last reply May 22, 2019, 2:39 PM Reply Quote 5
      • D
        dinkumoil @Mike Graham
        last edited by dinkumoil May 22, 2019, 8:50 AM May 22, 2019, 8:48 AM

        @Mike-Graham

        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 file nppColdFusion.dll to that folder. Furthermore the plugin package contains a folder named config containing the files nppColdFusion.db3 and nppColdFusion.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.

        1 Reply Last reply Reply Quote 4
        • E
          Eric Scoles @rddim
          last edited by May 22, 2019, 2:39 PM

          @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.)

          1 Reply Last reply Reply Quote 0
          • E
            Eric Scoles
            last edited by May 22, 2019, 2:59 PM

            Nevermind, figured out the problem: Does not associate file extensions by default. (Now to figure out how to make that work again.)

            1 Reply Last reply Reply Quote 0
            • R
              rddim
              last edited by May 22, 2019, 3:04 PM

              @Eric-Scoles

              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.

              D 1 Reply Last reply May 22, 2019, 3:14 PM Reply Quote 1
              • D
                dinkumoil @rddim
                last edited by May 22, 2019, 3:14 PM

                @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.

                1 Reply Last reply Reply Quote 2
                • M
                  micstan
                  last edited by Jun 20, 2019, 9:02 PM

                  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)

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe DeRose
                    last edited by Jul 12, 2019, 2:01 PM

                    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:

                    1. Navigate to the User Defined Language Files page at http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files.
                    2. 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.
                    3. Open Notepad++ and select “Language > Define Your Language…” from the menu.
                    4. Click the “Import…” button, and select the userDefineLang_CF9.xml file you just saved.
                    5. 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”.)
                    6. Re-open Notepad++. Now, you should see “ColdFusion” under the “Language” menu (at the bottom – not under the letter C).
                    7. Open a *.cfm or *.cfc file, and you will find it code-highlighted.
                    M 1 Reply Last reply Mar 19, 2020, 12:54 AM Reply Quote 0
                    • M
                      Michael Benoit @Joe DeRose
                      last edited by Mar 19, 2020, 12:54 AM

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • P
                        PeterJones
                        last edited by Mar 19, 2020, 5:08 PM

                        @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

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors