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

Add Support for YAML Frontmatter in Jekyll Files (*.html,*.md,*.markdown) #68

Open
mgerzabek opened this issue Aug 21, 2019 · 2 comments

Comments

@mgerzabek
Copy link

mgerzabek commented Aug 21, 2019

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.

@mgerzabek mgerzabek changed the title Add Support for YAML Frontmatter in Jekyll Files Add Support for YAML Frontmatter in Jekyll Files (*.html,*.md,*.markdown) Aug 21, 2019
@de-jcup
Copy link
Owner

de-jcup commented Aug 26, 2019

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.

Thesis 1

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.

Thesis 2

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.

@mgerzabek
Copy link
Author

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…

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

2 participants