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

Code blocks are always cpp #52

Open
tyler-gilbert opened this issue Aug 3, 2019 · 0 comments
Open

Code blocks are always cpp #52

tyler-gilbert opened this issue Aug 3, 2019 · 0 comments

Comments

@tyler-gilbert
Copy link

I have some documented code blocks in doxygen that are not c++. But parser.js always uses ```cpp for the block.

The xml file has the info and it can be pulled using this code in parser.js

case 'programlisting': 
            var extension = 'cpp';
            if( element.$ !== undefined ){
              if( element.$.filename !== undefined ){
                extension = element.$.filename.substr(1);
              }
            }
            s = '\n```' + extension + '\n'; 
            break;

I can create a pull request if this is a worthwhile change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant