Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript is listed twice in Language Preferences #4521

Open
EatonZ opened this issue May 24, 2018 · 7 comments
Open

JavaScript is listed twice in Language Preferences #4521

EatonZ opened this issue May 24, 2018 · 7 comments

Comments

@EatonZ
Copy link

EatonZ commented May 24, 2018

double

@MAPJe71
Copy link
Contributor

MAPJe71 commented May 24, 2018

One is for JavaScript script files (i.e. extension .js) and one for JavaScript embedded in e.g. HTML files. See "Tab Settings", it also has two JavaScript entries i.e. javascript and javascript.js.

@EatonZ
Copy link
Author

EatonZ commented May 24, 2018

I see. In that case, there should be something extra, like there is for Fortran, to better differentiate the entries there.

@EatonZ
Copy link
Author

EatonZ commented Apr 5, 2020

Will this be addressed?

@sasumner
Copy link
Contributor

sasumner commented Apr 5, 2020

@EatonZ Do you have a suggestion on differentiating names for these items?

@EatonZ
Copy link
Author

EatonZ commented Apr 5, 2020

@sasumner Maybe "JavaScript (JS)" and "JavaScript (HTML)" if that is indeed the difference per info from @MAPJe71.

@ArkadiuszMichalski
Copy link
Contributor

ArkadiuszMichalski commented Sep 15, 2020

@sasumner What about JavaScript (external) and JavaScript (internal/inline/embed), first is standalone file, second is embed in other type of files (like HTML). External/internal are often used in web, like for CSS for simillar purpose (https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/How_CSS_is_structured).

Edit: similar/duplicate bug #3712.

@ArkadiuszMichalski
Copy link
Contributor

ArkadiuszMichalski commented Dec 3, 2020

@donho Why on setting this Language Menu > Available items expose two Javascript entry? When you untick Make language menu compact then list on status bar display only one Javascript.
Now when we try put one of them to Disable items we get strange behaviour because each of them disable each other so no Javascript can be seen in list on status bar.
This menu shouldn't only contain one Javascript, which is responsible for external files?

Same problem is for Tab Settings: javascript.js changes space/tab for external js file (OK, this works), but what javascript entry does (definitely not affect the JS code in the HTML file)?

How Javascript support look like here, external files are controled by LexCPP.cxx and embed (code inside <script> tag) by LexHTML.cxx (or maybe also by LexCPP.cxx)? What is the difference between javascript.js and javascript here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants