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

language request: treeview #2264

Closed
muescha opened this issue Mar 24, 2020 · 5 comments · Fixed by #2265
Closed

language request: treeview #2264

muescha opened this issue Mar 24, 2020 · 5 comments · Fixed by #2265

Comments

@muescha
Copy link

muescha commented Mar 24, 2020

Language

format code blocks which is the result of the tree command shout be included in the core.

example of treeview:

root_folder/
|-- a first folder/
|   |-- holidays.mov
|   |-- javascript-file.js
|   `-- some_picture.jpg
|-- documents/

Additional resources

https://www.npmjs.com/package/tree-cli
https://github.com/Golmote/prism-treeview/ from @Golmote
https://codepen.io/anon/pen/GWxyNj

@RunDevelopment
Copy link
Member

@Golmote
Looks really cool, gotta admit. If you want to, I can turn this into a plugin.

@muescha
Thanks for providing the codepen.

@Golmote
Copy link
Contributor

Golmote commented Mar 24, 2020

@RunDevelopment Oh, a plugin would be a good idea, probably! I might be more difficult for people to find it, but the additional required stylesheet does not leave many more possibilities I assume.

@RunDevelopment
Copy link
Member

Well, we could make it a language definition and a plugin, so that the language (containing the grammar) requires the plugin (containing the stylesheet).
Will work, but... it kinda goes against the idea of Prism's languages and plugins.

@Golmote
Copy link
Contributor

Golmote commented Mar 24, 2020

Yeaaah, that sounds hacky... A plugin would be good enough I think.

@muescha
Copy link
Author

muescha commented Mar 25, 2020

PS: The CodePen comes from @Golmote ( Golmote/prism-treeview#1 (comment) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants