{"action":"created","issue":{"url":"https://api.github.com/repos/PrismJS/prism/issues/193","labels_url":"https://api.github.com/repos/PrismJS/prism/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/193/comments","events_url":"https://api.github.com/repos/PrismJS/prism/issues/193/events","html_url":"https://github.com/PrismJS/prism/issues/193","id":24665296,"number":193,"title":"Directory structure highlighting","user":{"login":"kbjr","id":195127,"avatar_url":"https://avatars.githubusercontent.com/u/195127?v=3","gravatar_id":"","url":"https://api.github.com/users/kbjr","html_url":"https://github.com/kbjr","followers_url":"https://api.github.com/users/kbjr/followers","following_url":"https://api.github.com/users/kbjr/following{/other_user}","gists_url":"https://api.github.com/users/kbjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kbjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbjr/subscriptions","organizations_url":"https://api.github.com/users/kbjr/orgs","repos_url":"https://api.github.com/users/kbjr/repos","events_url":"https://api.github.com/users/kbjr/events{/privacy}","received_events_url":"https://api.github.com/users/kbjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2013-12-21T13:59:25Z","updated_at":"2015-06-20T06:24:22Z","closed_at":null,"body":"I created a new syntax file for highlighting plain-text directory structure diagrams, like this:\r\n\r\n```\r\n|-- app\r\n|   |-- controllers\r\n|   |-- models\r\n|   `-- views\r\n```\r\n\r\nIt's extremely simple, just a single small regex to highlight commonly used symbols for this purpose:\r\n\r\n```javascript\r\nPrism.languages.folders = {\r\n    // Just highlight symbols used to denote folder structure\r\n    keyword: /^([-|+`\\s]+)/gm\r\n};\r\n```\r\n\r\nIs 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"},"comment":{"url":"https://api.github.com/repos/PrismJS/prism/issues/comments/113716346","html_url":"https://github.com/PrismJS/prism/issues/193#issuecomment-113716346","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/193","id":113716346,"user":{"login":"loganfranken","id":1024444,"avatar_url":"https://avatars.githubusercontent.com/u/1024444?v=3","gravatar_id":"","url":"https://api.github.com/users/loganfranken","html_url":"https://github.com/loganfranken","followers_url":"https://api.github.com/users/loganfranken/followers","following_url":"https://api.github.com/users/loganfranken/following{/other_user}","gists_url":"https://api.github.com/users/loganfranken/gists{/gist_id}","starred_url":"https://api.github.com/users/loganfranken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganfranken/subscriptions","organizations_url":"https://api.github.com/users/loganfranken/orgs","repos_url":"https://api.github.com/users/loganfranken/repos","events_url":"https://api.github.com/users/loganfranken/events{/privacy}","received_events_url":"https://api.github.com/users/loganfranken/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T06:24:22Z","updated_at":"2015-06-20T06:24:22Z","body":"This is awesome @kbjr and @Golmote!\r\n\r\nIt doesn't look like there are plans to bring this into the core Prism, right? If not, we could probably close this issue,"}}