Directory structure highlighting
See original GitHub issueI created a new syntax file for highlighting plain-text directory structure diagrams, like this:
|-- app
| |-- controllers
| |-- models
| `-- views
It’s extremely simple, just a single small regex to highlight commonly used symbols for this purpose:
Prism.languages.folders = {
// Just highlight symbols used to denote folder structure
keyword: /^([-|+`\s]+)/gm
};
Is this something you think others might want? I can give you a pull request very easily if you think so, I just wasn’t sure if anyone other than me cares :p
Issue Analytics
- State:
- Created 10 years ago
- Comments:19 (18 by maintainers)
Top Results From Across the Web
Creating Highlight Tree Structure
Creating Highlight Tree Structure. Overview. The Network Explorer comprises folders and locations. Folders may contain other folders and/or locations.
Read more >Print Directory & File Structure with icons for representation in ...
I want a Linux command to print directory & file structures in the form of a tree, possibly with Unicode icons before each...
Read more >File Structure : Broad Institute of MIT and Harvard
A successful file structure organizes your data and code with the goal of repeatability, ... When you double click on a segment of...
Read more >How to display folder structure in markdown files - W3schools.io
This post talks about how to generate folder structure in markdown. Markdown is plain text content that is easy to read and converted...
Read more >Directory Structure - Hugo
Hugo's CLI scaffolds a project directory structure and then takes that single directory and uses it as the input to create a complete...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A little more mature example, this adds classnames based on file extension, so you can highlight different types of files differently:
@LeaVerou He meant why is it an external project. But we now have included this feature as a plugin in #2265! 🎉