How to add syntax highlighting for .nbs files in NetBeans - netbeans

I cant't seem to find any plugin that does this.
Does anyone know?

It is already there, I use NetBeans 8.2 and when you open a NBS file it will highlights the code inside. It is not perfect, because you have to click a bit inside the file and maybe close and open it again but it is still there. You can create a ticket for improvements here: https://issues.apache.org/jira/projects/NETBEANS

Related

VS Code: when I close a sub-folder and return to the file, the sub-folder reopens

I've always developed with Sublime Text, but I feel that VS Code is much better, so I want to get started.
I have a problem please (with Sidebar of VS Code):
When I open a sub-folder in my project, and I open a file that is inside, I like to manually close this sub-folder (because I like to see the architecture of the project, etc.) and to continue working on its files which are already open in my editor.
For example (I work with Laravel): if I open a "User.php" file which is in the "App/Modals" folder, then I manually close the "App/Modals" folder, then I will work in another file, then I come back to work in "User.php", the "App/Modals" folder reopens by itself ...
I do not have this behavior with Sublime Text, nor with PHP Storm.
SVP: Is there a regulation to prevent this behavior?
Thank you.
There's an option to make this feature (it's not something that's just happening to you, it's a feature of VSCode) go away. Go to settings (ctrl + , or cmd + , on mac) and search for "explorer.autoReveal". Make sure it's unchecked, or set it to false in your setting's json.
Just by the way, I don't know if you did, or you didn't know what to search, but you should try to solve this kind of problems by googling for an answer. For instance, I didn't know the answer, but a simple 'disable auto opening folder vs code' in google brought me several results. Just a recommendation, so that you can learn how to solve your own problems and be more efficient.

visual studio code quick open shows only visited files

I just started to use vscode. It seems I can't correctly use Quick open (Control-p). It only shows already visited files. Is there some configuration I need to set to change this behaviour?
I'd like to open them in fuzzy way and I seem to understand that it should be possible but again that doesn't work. My (django) project has 7/8 files named 'models.py' but if I write 'mdl' I don't find anything. Nor it does if I write part of the directory name.
I'm using version 1.18.0-insider
sandro
*:-)
Solved: it seems it all depended on a wrong pattern in file exclude. I added '/.pyc' when the correct pattern was '*/.pyc'. I realized when searching and an error was raised.

How to prevent Visual Studio Code from opening abc.exe in editor?

I've just started with Visual Studio Code.
One thing I find really strange is, if my code compiles to an *.exe, and I select it in the explorer, VS Code tries to "open" it, as if it was a text file, and then complains it's a binary file.
Ideally, it should do nothing when I select it, and I should have to easy way of running it if I want, like "double-click" or some option in context menu. I don't want to hide the .exe, I just want VSCode to know it cannot edit it, so it shouldn't try.
[EDIT] In case someone wonders why I'd single-left-click on something where that click "makes no sense", it's because I've spent the last 15 years using an IDE where that does nothing except select the file in the explorer, and so I got into the habit of click on things while I'm "thinking about it", for example when I'm talking about this file to someone else. That's a hard habit to get rid of, in particular since I'm still using that IDE in my "day job".
As far as I know, this is not possible. There aren't any settings to control this and extensions can't block an editor from opening.
An extension COULD automatically close any tabs that were opened for a .exe file. So if you clicked on it and a tab opened, the extension could close it. I don't know if such an extension exists.
Otherwise you can create a feature request on github: https://www.github.com/microsoft/vscode/issues/new

All I get is "Client/Server JS Editor"

In XPages, when I try to open a .js or .jss file, I often get just the tab wirh "Client/Server JS Editor" and nothing else, i.e. the file doesn't load. From the Navigator Eclipse view, I can open the same .js or .jss file using any other editor without problems. And then, it sometimes works, but I don't know yet when it does and when it doesn't. The other Editors are okay by the way, .lss opens nicely.
This behaviour I get for a few weeks now. Since it started I reinstalled Notes a few times, I upgraded to FP8, I also reinstalled Windows10 and Windows10 upgraded me to the Creators Update (with the fix, in the end). There's nothing that explains to me why the file doesn't show up on the screen.
Anyone familiar with this? Could you please tell me how to repair this?
Thanks!!
It's a bug introduced with FP8 that is fixed in FP8 Interim Fix 1. See this document for download options for FP8 IF1.
As a workaround you can do a clean/rebuild of the nsf and then use the SSJS editor.

How does the doT.js Plugin for PHPstorm work?

I want to use doT.js-Templates in JetBrains PHPStorm.
I found a plugin on the JetBrains Plugin-Site http://plugins.jetbrains.com/plugin/7327?pr=idea for doT-Templates.
I installed it and restarted the IDE, but it doesn't seem like anything has changed.
The Github-Page or the description don't tell anything about what exactly the plugin does or how it works.
Does anyone know what this plugin does?
Or does anyone know another way for achieving syntax highlighting or IntelliSense for dotJS-Templates in PHPStorm?
I found the solution myself.
In order for the doT-Plugin to highlight doT-Template-Sytax, I had to create files with the .dot-extension instead of the ".html" extension I had before.
But if anyone sees this and decides to use this solution, be aware that changing your .html-Files to .dot-Files wrecks PHPStorm's autocompletion of html-Code inside of these files.