2017-08-05, 03:50:23
I cannot figure out how to prevent word-wrapping in the Innovation theme of GS v3.3.13 when I create a page with the following information in the source editor:
I added the following to style.css:
This provides a nice-sized window for viewing the code. I get a vertical scrollbar when the lines do not fit in the window and sometimes get a horizontal scrollbar. However, for files with lines longer than a certain length, the text is wrapped, whether or not there is a horizontal scrollbar.
...lee
Code:
<pre><code><embed src="./data/uploads/filename.txt"></embed></code></pre>
I added the following to style.css:
Code:
article section pre code embed{
width:590px;
height:700px;
}
This provides a nice-sized window for viewing the code. I get a vertical scrollbar when the lines do not fit in the window and sometimes get a horizontal scrollbar. However, for files with lines longer than a certain length, the text is wrapped, whether or not there is a horizontal scrollbar.
...lee