Git Product home page Git Product logo

Comments (6)

pryrt avatar pryrt commented on July 29, 2024 1

Apparently, no one had tried it since it was uploaded to the repo -- it didn't have valid XML structure. Once I fixed that, I was able to put it in my userDefineLangs\ folder and it highlights example Go code. So you should try downloading the updated version.

If the updated version works, you can close the issue. Otherwise, let me know that it's still not working.

from userdefinedlanguages.

pryrt avatar pryrt commented on July 29, 2024 1

You said,

Cloud Config : D:\*****\*****\NextCloud\Configs

There's your problem. Your active userDefineLangs folder is D:\****\****\NextCloud\Configs\userDefineLangs\.

https://npp-user-manual.org/docs/config-files/ =>

If you enable the Cloud settings, some configuration files will go in the defined directory (including contextMenu.xml, shortcuts.xml, userDefineLang.xml, langs.xml, stylers.xml, and config.xml; the userDefineLang\ subfolder can be placed there as well, though it won’t be created by default when the Cloud settings folder is first populated).

So if you want this Go language UDL active, the config file needs to go in the cloud config hierarchy, not in the AppData hierarchy.

from userdefinedlanguages.

Revertron avatar Revertron commented on July 29, 2024 1

Ah, thanks!
I didn't remember that I've configured that.
Thanks a lot, now it works!

from userdefinedlanguages.

Revertron avatar Revertron commented on July 29, 2024

But I've tried that. Didn't work either :-/

from userdefinedlanguages.

pryrt avatar pryrt commented on July 29, 2024

But I've tried that. Didn't work either :-/

It works for me. Are you sure you tried after I fixed the file?

  1. Close Notepad++
  2. Download go_byAbthonyStarks.xml into correct userDefineLangs\ folder (most likely %AppData%\Notepad++\userDefineLangs\ , depending on your installation
  3. Start Notepad++
  4. Languages > go is available

If that is not your experience, you will have to give more details as to what's not working. (For example, supply your Debug Info, along with directory listings of where you put the downloaded file to prove it's where it should be)

from userdefinedlanguages.

Revertron avatar Revertron commented on July 29, 2024

Yep, I've redownloaded that xml to this directory:
image
Restarted the Notepad++, and there is no Go language in Languages menu :(

Here is Debug Info:

Notepad++ v8.2.1   (32-bit)
Build time : Jan 19 2022 - 18:38:49
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : D:\*****\*****\NextCloud\Configs
OS Name : Windows 10 Enterprise (64-bit) 
OS Version : 2009
OS Build : 19044.1566
Current ANSI codepage : 1251
Plugins : mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll NppSaveAsAdmin.dll 

from userdefinedlanguages.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.