FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


Notepad++ Visual Prolog Language Support

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 392

PostPosted: 3 Sep 2017 14:32    Post subject: Notepad++ Visual Prolog Language Support Reply with quote

I noticed that the latest version of Notepad++ 7.5.1 announces Visual Prolog language support.
That would be of course a good thing!
Can anybody comment on that?
Thanks,
]an
Back to top
View user's profile Send private message
Harrison Pratt



Des Moines, Iowa USA
Joined: 05 Nov 2000
Posts: 316

PostPosted: 3 Sep 2017 15:53    Post subject: Reply with quote

There does not seem to be anything special in NPP's built-in Visual Prolog support -- opening a .PRO file in NPP 7.5.1 shows plain black on white text with no syntax highlighting. I'll take a deeper look later. I just installed the NPP upgrade this morning after seeing your post.

I have been using my own user-defined languages for VP in NPP for some time, from VIP 3.2 days until now, and like it very much. The custom syntax highlighting and macros are very helpful.

-- Addendum --

The language does seem to be defined in the langs.model.xml and styles.model.xml files in the Notepad++ executable directory, so I don't know what's going on with the VIP 7.5 lexer. The lexers for the other languages work as expected on my .PRO file.

In Settings > Preferences... > Language Visual Prolog is Available in the Language Menu section of the dialog.

I don't know how to fix that problem right now -- will try to get help here:
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/1439
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 3 Sep 2017 18:44    Post subject: Reply with quote

It works fine for me. Also after uninstalling (where I answered yes to delete my settings) and installing again.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 392

PostPosted: 4 Sep 2017 8:07    Post subject: Reply with quote

Tried both VIP 5.1 and VIP 7.5 files.
Doesn't work for me either. Will try reinstall.
]an
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 4 Sep 2017 8:25    Post subject: Reply with quote

Apparently, Notepad++ cannot merge old settings with the new ones and therefor it simply retain the old settings.

The settings are in C:\Users\<user>\AppData\Roaming\Notepad++ the relevant files are langs.xml and styles.xml.

If you delete (or rename) the files you will get fresh copies next time you start Notepad++.

_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Jan de Lint



The Netherlands
Joined: 06 Mar 2000
Posts: 392

PostPosted: 4 Sep 2017 9:34    Post subject: Reply with quote

After reinstall it works. But now the plugin 'plugin manager' is lost.
]an
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 4 Sep 2017 10:04    Post subject: Reply with quote

That unfortunately is outside my experience area.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Harrison Pratt



Des Moines, Iowa USA
Joined: 05 Nov 2000
Posts: 316

PostPosted: 4 Sep 2017 12:52    Post subject: Reply with quote

Plugin Manager is missing (for now) from NPP 7.5. A replacement is promised. Apparently you can manually install it from a previous version, but I haven't tried doing that yet. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2430

Here is how I got the new built-in Visual Prolog lexer to work in NPP while keeping my own lexers and macros:

(1) Make a backup copy of my NPP installation directories: Program Files (x86) and C:\Users\<USERNAMEHERE>\AppData\Roaming\Notepad++.
(2) Completely uninstall the current version of NPP.
(3) Copy backup copy of userDefinedLang.xlm into the corresponding new directory.
(4) Use an XML editor to merge the the backup copy of shortcuts.xml with the new file. I used CodeCompare. You might be able to just copy this file from backup, but I didn't try that.

I think that Plugin Manager is preserved if you do an in-place up-grade of NPP, but is lost on uninstall/reinstall.

I copied PluginManager.dll from backup into the plugins directory in the Roaming tree, then ran GUP.exe from the Notepad++/updater directory to install the PM and upgrade it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum