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

printing output in html format!! #505

Closed
Sharath8598 opened this issue Sep 21, 2022 · 5 comments
Closed

printing output in html format!! #505

Sharath8598 opened this issue Sep 21, 2022 · 5 comments

Comments

@Sharath8598
Copy link

Is it possible to print the output in html or xml format.
if yes !! can you please guide me the procedure .

@andreasfertig
Copy link
Owner

Hello @Sharath8598,

I'm not sure whether I understand your question correctly. C++ Insights itself only does plain text output. Both HTML or XHTML are not supported.

But maybe you're asking whether you can print a page on cppinsights.io? Then the answer is, sadly, no. But I would accept a PR adding this functionality to the web front end.

Andreas

@Sharath8598
Copy link
Author

Sharath8598 commented Sep 22, 2022

Hi,
Hope you are doing well.............!! I would like to know which function is used to display the output in terminal. So Can you please let me know that function? It is very important at this point of time so please help me out.

@andreasfertig
Copy link
Owner

Hello @Sharath8598,

I do, thanks!

C++ Insights uses CodeMirror for the syntax highlighting and HTML generation. If you want to get HTML formatted output from a local C++ Insights instance, you can also look at Python's codehilite.

Andreas

@Sharath8598
Copy link
Author

Hi, good to know your doing well.
I am running the cpp insights in ubuntu terminal(local machine), may I know which variable stores the cpp insights output or which function is displaying the output in the terminal. Because I want to know how to fetch the cpp insights output and send that output to another function(Please note that another function told here refers to a user defined one).

@andreasfertig
Copy link
Owner

Hello @Sharath8598,

inside C++ Insights, the closest I can point you to is Insights.cpp#L114. The mRewriter contains all the rewrites and the original source.

Andreas

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

2 participants