Git Product home page Git Product logo

Comments (7)

pryrt avatar pryrt commented on July 29, 2024

The "raw contents in clipboard" is not "the file"

The "raw contents in clipboard" is "the file" (or, more accurately, the "raw contents of the file") if you used the button on the right, which has the "Copy raw contents" hover text.

... I had hoped that that my screenshot, along with my text where I differentiate between the "Raw" button and the "copy raw contents" button, was clear enough to indicate that the left button and right button do slightly different things, but can both be used for the purpose of getting the actual XML file contents. But obviously, it was not clear enough. I guess I will have to clarify that even more.

I will also try to work in the "Open User Defined Language Folder" hint

from userdefinedlanguages.

drosenba avatar drosenba commented on July 29, 2024

Yes, it is a little confusing because getting "file contents" is not quite the same as getting "the file" (into the folder), which is ultimately what is needed. Thanks.

(Maybe Notepad++ just needs another menu option ;) since it could just download the file, like you could with curl:
curl -o C:\Users\me\AppData\Roaming\Notepad++\userDefineLangs\SomeUDL.xml https://github.com/notepad-plus-plus/userDefinedLanguages/blob/master/UDLs/SomeUDL.xml

from userdefinedlanguages.

rdipardo avatar rdipardo commented on July 29, 2024

While this is open, it could be pointed out that the "Copy raw contents" option is not universally supported by web browsers.

Yes, it works in Chrome and Microsoft's Edge clone, which is to say ~80% of the world's users, if StatCounter can be believed. But Firefox, Safari and Opera are all exceptions.

Edge (Chromium) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53 MSEdge
Firefox Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0 FF
Opera Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 OPR/90.0.4480.84 Opera
Safari (by hacking the user agent string in the "Network conditions" panel) Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15 Safari(Mac)

I'm sure browser quirks are just a tiny contributor to the confusion some users have experienced. Still, it might be better to encourage clicking the "Raw" button, and saving the plain text resource it links to. It's the one universally supported option across browsers (even mobile ones).

from userdefinedlanguages.

pryrt avatar pryrt commented on July 29, 2024

the "Copy raw contents" option is not universally supported by web browsers

I didn't know that: it surprises me that Firefox and Opera don't support it. (Since at home I use Chrome, and at work I use Edge, I hadn't used a browser that didn't have it.)

even mobile ones

Given that Notepad++ doesn't run on mobile, that wasn't a consideration in my mind.

But having only two major browsers (or two, since modern MS Edge uses Chromium under the hood) support that button is a good reason. Given that lack of support, I will remove the references to it before merging the PR

from userdefinedlanguages.

pryrt avatar pryrt commented on July 29, 2024

@drosenba and @rdipardo ,

does this newer version describe the process better?

from userdefinedlanguages.

drosenba avatar drosenba commented on July 29, 2024

Yes, much better. One minor addition might be that after "... find the right userDefineLangs\ folder to place your UDL definition file...", you mention to copy the path from file explorer address bar, to be later pasted into Save As dialog.
Thanks.

from userdefinedlanguages.

pryrt avatar pryrt commented on July 29, 2024

Done and merged. Thanks for your input.

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.