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

[Feature] HTML file tree view #35

Open
kubawolanin opened this issue Jan 28, 2018 · 1 comment
Open

[Feature] HTML file tree view #35

kubawolanin opened this issue Jan 28, 2018 · 1 comment

Comments

@kubawolanin
Copy link
Contributor

A simple HTML file tree view would allow users to jump around the currently edited template file.
A few notes:

  • https://github.com/fb55/htmlparser2 could be utilized. See this demo
  • All the leaves would have the following format: TAG<#id><.class>.
  • We need to think of the special cases like e.g. <input type="text"> or just leave them with tags for now

Best regards
Kuba

@DaGhostman
Copy link
Owner

DaGhostman commented Jan 28, 2018

Thanks for providing a link to the demo page, I was looking for it in order to get a list of parsers and their output! 👍

The idea about the tag syntax seems ok, but I think that it might be more reasonable to have them as

 body<#id>
    - type: text
    - class: my-class-one another-class
    + children
        + div
        // etc.

Where the #id is optional, attributes as strings, child elements in their own section. Or alternatively

 body<#id>
   +attrbutes
        - type: text
        - class: my-class-one another-class
    + div<#id>
        // etc.
    // etc.

But with that another question arises - How will textual content be handled, especially those that have i, em, small, sub, etc tags in there, those formatting tags might cause quite some noice, especially when they don't have any particular meaning from the perspective of a symbol-tree

@DaGhostman DaGhostman self-assigned this Mar 21, 2018
@DaGhostman DaGhostman added this to the Release 2.3.0 milestone Mar 21, 2018
@DaGhostman DaGhostman modified the milestones: Release 2.3.0, 2.4.0 Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants