Code Monkey home page Code Monkey logo

Comments (1)

mike-lischke avatar mike-lischke commented on May 22, 2024

The visual appearance depends heavily on the tree structure. Sometimes there's overlap, sometimes not. Even with straight lines that would happen.

  1. increase the separation

Increasing the separation might be possible, but will make the trees with non-trivial input even larger than they are currently. Not sure yet how to find a better compromize. However, the layout of the tree is done by a 3rd party tool (D3.js) and I'm not sure you can customize it so far.

  1. colors for lines, tokens and nodes

Colors for the elements can be choosen as you wish. Specify your own CSS file and set how you would like the display to be.

  1. collapse rules

Rules can already be collapsed. Just click on the node. I wouldn't however collapse the entire tree upfront.

Note: The tree needs some improvements anyway, like saving/restoring layout when switching away. At the moment the tree is constantly re-created (also a result of how web views are implemented in vscode). This has been fixed, as the extension now uses the new webview API (which allows for persistent pages)

from vscode-antlr4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.