Support for Markdown in comments (twig/PHP/less)

#1

I see that there are a lot of packages for Markdown, but I am interested in using Markdown inside my other code.

Specifically, I’d like to be able to go into a PHP file, create a comment block, and add Markdown headers and lists.

Then, if there was a sidebar where I could see the outline of my markdown headers, I could use these to navigate through PHP, Less or twig files. If there was a way so highlight the Markdown, where the headers were larger and double asterisks were bolded, this would greatly help me organize my code.

#2

There are PHP markdown libraries around which might fit your needs.

#3

Thanks for the reply. I have seen a number of markdown parsers written in PHP, but I’m looking for a way to highlight markdown that’s inside a comment block in a php file.