Can I include the default editor inside a webview in VSCode? - webview

In my project I created a Webview extension for Visual Studio Code. Inside the Webview I have a text editor (currently monaco editor) and a graphical Modeler.
Now I wondered if there is any way to replace the monaco editor inside my Webview with the standard editor of Visual Studio Code. This would be extremely helpful because I would not have to worry about connecting the custom text Editor to my LSP Extensions and also have 100% the same functionalities as in the rest of Visual Studio Code.
Do You know of any way in which I could achieve this goal?
Best Regards
Thomas

The feature request you are looking forward is https://github.com/microsoft/vscode/issues/93265
It is being implemented
In VS Code Help > Interactive Playground you can have an idea of what it will look like, even if it is not exposed through the API yet.
Meanwhile, vscode-python configures the Monaco Editor to look as much as possible to the native text editor.

Related

Why is razor code in VS19 not highlighting in .cshtml file?

I'm using Visual Studio 2019, v16.11.8 Preview 1.0 to work on MVC projects. At some point my razor code stopped appearing highlighted in .cshtml files, making HTML and C# difficult to tell apart. This is how the code looks now:
I've checked over the color settings for razor code by going to Tools -> Options -> Environment -> Fonts and Colors -> HTML Razor Code Background, but this and the other related settings looked fine. I've also tried restarting VS and the machine itself.
What is the cause of this and how can I fix it?
Found the issue. An experimental Razor editor is enabled by default in the preview. One of the known issues relates to the coloring.
To disable the experimental editor go to Tools > Options > Preview Features and scroll down to uncheck Enable Experimental Razor editor (requires restart). Click Ok and restart your VS.

I would like to write a syntax highlighting editor extension for VS 2019 in C++ (nothing else), are there any samples to get me started?

I would like to write a syntax highlighting editor extension for VS 2019 in C++ (nothing else), are there any samples to get me started?
I can only find one example extension for VS 2019 written in C++ and it consists of a subclass with no explanations of how to do anything AFAI can see.
I believe I need a language editor extension, but am not 100%
The language it needs to highlight is similar to assembler.
If this was VS6, I might have just used the custom keyword colouriser.
I would like to write a syntax highlighting editor extension for VS
2019 in C++ (nothing else), are there any samples to get me started?
In current VS IDE, Microsoft does not advocate writing extensions in c++.
As Microsoft recommends, current extensions are more likely to use c# rather than c++.
Although some VS SDK APIs are probably written in c++, but the interfaces are still called using c#.
However, there is only one c++ project template called vspakcage
But this project provides various background services for VS IDE . It will only be loaded when needed. So for you to add the syntax highlighting feature permanently, this project is afraid of lacking.
Besides, there is no official documentation to guide the writing of the c++ project.
Suggestion
You can try to write such extension in c#, and you can refer to this official document and this.
In addition, if you still want your feature, I suggest you could suggest a feature on our User Voice Forum.(click suggest a feature). Then you can share the link with us here and anyone who is interested in this feature will vote for you so that it will get Microsoft's attention.

binding osmdroid/osmbonusback into xamarin library

At the moment I try to develope a simple maps Android application using Visual Studio 2012 and Xamarin.
For this reason I created a Binding Library, like it is desribed here:
http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/
For my app it is essential to display markers and ballons with a short title text. I did a lot of research and found out, that I should use the osmbonuspack for this purpose. I tried to implement the "osmbonuspack_v4.5.jar" in my binding project as "Embedded Jar" but I think it's the wrong attempt.
Did someone managed it already to create a Xamaring Binding Library of the osmbonuspack? I would appreciate every attempt!

IOS UIAutomation - how to get elements when I create ios UIAutomation JS script

I have a new project need create auto test script with ios application, but only can provide ipa file (developer build), cannot provide source code. Currently I used Tuneup JS. I have some questions need help. Please see details as below.
I only have ipa file no source code, so how to get application elements and how to locate element? Is there any documents can reference? If can provide some examples should better.
If this ios application is HTML5 application, can automate?
When I use Tuneup JS to create script is there any recommended IDE to help create script? Because very hard to remember all APIs.
very very appreciate for your helps.
Thank you very much
You can use window.logElementTree(); and in the instruments window, when you run the app, it will log the elements of the current window.
check out apple's documentation:
https://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/UIAutomationRef/Introduction/Introduction.html
Your second question makes no sense.
I use sublime text editor to write my tests, although it isn't an IDE, just a fancy text editor.

Online programming editor

For a school project i need to write or use a online programming editor. It is a part of a bigger project. I thought of a java application, php/html/javascript or flash.
I have a couple of things i could do:
Find a good working application and edit it so it works with the rest of the project
Find good parts for a editor and make it working my self (syntax highlighter, auto-indent, autocompletion, etc.)
Combination of those two
Does anybody know a good editor or have tips for this project or a editor?
Thanks for reading,
Leon
For the syntax highlighting and basic editing part, check out my recent question Textarea that can do syntax highlighting on the fly?
Solutions presented there:
CodeMirror
Bespin (Mozilla only, but great)
For the rest - autocompletion etc. - ... Check out the Wikipedia article Comparison of JavaScript-based source code editors
Interested to see what other suggestions come up.
Bespin comes to mind. Though it might be too bleeding edge, depending on how the rest of the project is built/meant to be used (but hey, programmers love bleeding edge).
If you decide to use PHP/HTML/CSS/JavaScript, see GeSHi for syntax highlighting.
I have a side project developed with ACE.
It connects to your server through SFTP and allows you to create new files,read and edit all from your browser with your file tree at sidebar.
Demo at TePe
Code at Github Repo
I found Cobalah Editor it's also built on CodeMirror but with some customization. There are some themes available we can set, increase or decrease font size.

Resources