Open mgerzabek opened 5 years ago
Ahem. I am not sure what you are exactly suggesting. This is a yaml-editor plugin suitable for files normally ending with *.yml
or *.yaml
and containing YAML content.
Looking at https://jekyllrb.com/docs/front-matter/ there seems to be always a yaml header block in every jekyl file describing the content in YAML.
You want to open *.html
, *.md
and *.markdown
files with yaml editor?
This can be already done in preferences for file associations or with "Open with -> Other ..." context action.
You want to have the yaml parts rendered inside the origin files.
As far as I know there is no possibility to provide source formatting from one editor into another editor in an embedded way inside eclipse (@vogella : But this would be a nice feature, to let other editors render dedicated parts only ... ).
HTML editor and Markdown editor (which one ?...) are autonomous plugins which have their own source formatting. If you like to have yaml rendering inside them, please contact the owners of these plugins.
Okay. Thanks for the clarification. Thesis 2 is what I meant. I want the yaml parts within .html or .md files to be recognized and highlighted.
WTP is using the Structured Source Editing Component which is by design capable of handling different content partition types within one source file.
The page hints at StructuredTextViewerConfiguration
and the Editor Configuration extension point (org.eclipse.wst.sse.ui.editorConfiguration
).
AFAIKS third parties are enabled to contribute their work to this extension point to enhance the editing of specified content types, e.g. org.eclipse.wst.html.core.htmlsource
when extending the HTML editor.
My eclipse days are faaaaar away, but maybe I can create a pull request…
Jekyll allows for frontmatter in posts and pages. Frontmatter has to be at the beginning of the file, and starts and ends with three dashes (---). It would be awesome if this editor would be contributed to the standard Eclipse HTML Editor and the Markdown Editor to allow syntax coloring of the frontmatter block.