Wrapping of source code depending on output format
The code formatting using the github flavor is a great thing for my manual writings.
But the horizontal scrollbar in wide code segments naturally doesn't work in PDF, RTF, ... output.
Is there a switch to wrap wide lines of code for printable output.
Thanks
Uwe
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 02 Sep, 2013 08:14 PM
You can do this by adding some custom CSS.
pre {
white-space: pre-wrap;
white-space: pre-line;
}
2 Posted by Uwe Peuker on 02 Sep, 2013 08:39 PM
Thanks for the fast reply.
So easy! It will help me to understand and adjust the output to my needs!