Style attribute has no suggest in .vue files - visual-studio-code

https://github.com/vuejs/vetur/issues/223
https://github.com/vuejs/vetur/issues/1678
If files.associations: "* .vue": "vue", the page will lose its vue characteristics, after all, it is not an html page.
If you don't render the page according to html, then there is no code segment with embedded style.
Is it possible to have a style snippet while rendering according to vue

Please see attached link for your answer
*.vue files, Visual Studio 2017 & TypeScript
and see also best extensions for vue files in visual studio code
https://flaviocopes.com/vue-vscode/

Related

How to get the whole code of a HTML element in Developer tools?

I'm looking for possibility to export or just copy the whole code of a HTML element, targeted with Developer Tools. With whole code I mean not only HTML (this option is good visible in context menu), but corresponding CSS and JS code too.
I found a Chrome extension, which claims to copy HTML and CSS, but it isn't reliable in its core function and doesn't copy JS at all.

VS code issues with recognising tags as headers

I have been writing markdown documents in VS code and I would like to know the way to add "tag" in a .md file?
I tried to insert tags in my example.md
# Title
#tag1 #tag2
document content...
The related plugins installed in my VS code are Markdown All in One + Markdown Preview Enhanced
Issue: VSCode recognized those tags as headers.
So how to let VS code recognize those as tags?
Thanks in advance for any help or clues!

Where can I find the code that converts PR descriptions into HTML

Pull requests' (PRs) descriptions use Markdown that's documented here, and when the PR is viewed in a browser, that Markdown content is converted into HTML and looks "pretty".
Where can I find the code that converts it from Markdown to HTML, so I can leverage the same algorithms in my (internal-only) code?
Unfortunately we can not see the source code. It should be something like the Markdown editor/viewer.
So if you mean you want to render the Markdown with the "pretty" formatting offline, then you can use the existing Markdown editor/Tools such as markdown-it or showdown or any others.
Showdown is a JavaScript Markdown to HTML converter, based on the
original works by John Gruber. Showdown can be used client side (in
the browser) or server side (with Node.js).
If you are interested in the codes, then you can reference the open source code of markdown-it or showdown on GitHub.
Other related questions:
How to render Markdown Text from database in a Razor view?

vscode: Create rich content similar to what is in the Release Notes?

Visual Studio code has very nicely formatted release notes:
I'd like to create files that look this nice.
How is this done for VSCode? And, is it possible for me to generate a similar document (embedded images, formatting, hyperlinks) in VSCode? Or, do they use a 3rd party tool?
Yes, the release notes are just markdown converted to html that is rendered in a webview. You can use the built-in markdown preview to view markdown content in this way
If you are writing an extension that needs to show nicely formatted content like this, use the vscode.previewHtml command. This example extension provides an example of how to do this using TextDocumentContentProvider

Filling Word template with OpenXML - Bookmarks or ContentControls

I've an application that automatically fills MS Word templates (.dotx) written using COM and Word object model. There are some Bookmarks in the template, that are filled programmatically.
Now I'm migrating to OpenXML.
Could you please explain me what should I prefer using OpenXML - Bookmarks or Content Controls and why?
WordDocumentGenerator is an utility to generate Word documents from templates using Visual Studio 2010 and Open XML 2.0 SDK. The code is available for download at http://worddocgenerator.codeplex.com/. Content controls are used in templates. A lot of samples are provided for document generation which will show how functional and flexible content controls are.
Content controls are significantly more resistant to overwriting during document editing. You can use either one with OpenXML without additional complications.