-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Styling Code Snippets & Command Output #333
Comments
This is because code blocks in the application will result in a specific style in Word document. It would be possible to add syntax highlighting in the application but it won't be added in the generated report. So to be coherent between both the application and the report it was not added. |
Thank for your reply. |
I did not find a way to do that easily. Also the fact that the application is common to everyone and the Word document is specific to everyone makes it too complex to maintain consistency across everyone |
Hi @yeln4ts, Considering the widespread of using google services, is there any chance you can reconsider the option to add some sort of styling directly in the app? Even something default like Consolas font, white text, black background should be fine. |
Yeah, sure. |
I don't think there is any solution to your issue then if Google docs does not apply styles. |
@mrnfrancesco Use table or paragraph with border instead of the codeblock style can be a solution. What do you thing about that ? |
Using a table/paragraph with borders make easier to isolate the code to the other text, but it still need at least a monospace font to render correctly. For me the correct solution to match everyone needs is to use syntax highlight or any other code formatting directly as HTML in the app without using a document style. Basically the same that happens when you copy/paste code from VSCode into Word. |
FYI #355 |
Hey,
It will be great if we can somehow mark/style parts of text in a command output or source snippet so they can stand out. Ideally, we can either bold them, change their color, or distinguish them in another way.
The problem is that it is not possible to format the text in the code and code block styles in the UI. For example, highlighting the vulnerable header in an HTTP request.
It's not a question of style functionnality in the .docx template.
Whatever is easier to implement, I am sure we can get it to work.
Thanks!
The text was updated successfully, but these errors were encountered: