Title: [Plugin: SyntaxHighlighter Evolved] Wrap lines on mobile touch device
Last modified: August 20, 2016

---

# [Plugin: SyntaxHighlighter Evolved] Wrap lines on mobile touch device

 *  [huyz](https://wordpress.org/support/users/huyz/)
 * (@huyz)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-wrap-lines-on-iphone/)
 * When I’m viewing my page on an iPhone, the WPTouch 2 plugin displays most things
   nicely. But since there are no scrollbars on a touch device, the code lines displayed
   by SyntaxHighlighter are just cropped.
 * What would be the way to style so that we can have
 *     ```
       white-space: pre-wrap;
       word-wrap: break-word;
       ```
   
 * in effect and thus have the code wrap?
 * [http://wordpress.org/extend/plugins/syntaxhighlighter/](http://wordpress.org/extend/plugins/syntaxhighlighter/)

Viewing 1 replies (of 1 total)

 *  [pjnovas](https://wordpress.org/support/users/pjnovas/)
 * (@pjnovas)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-wrap-lines-on-iphone/#post-2169475)
 * I’m having the same issue … I did this to fix it:
 * Override this one:
 *     ```
       .syntaxhighlighter table td.code .line {
           white-space: pre-wrap !important;
           word-wrap: break-word !important;
       }
       ```
   
 * And for code line numbers to not being shown when is a mobile device (cause with
   break word, the line numbers does not look well):
 *     ```
       @media screen and (max-width: 680px) {
       	.syntaxhighlighter .gutter {
       	  display:none;
       	}
       }
       ```
   
 * Version 3 of SyntaxHighLighter
 * Hope it helps!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: SyntaxHighlighter Evolved] Wrap lines on mobile touch device’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pjnovas](https://wordpress.org/support/users/pjnovas/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-syntaxhighlighter-evolved-wrap-lines-on-iphone/#post-2169475)
 * Status: not resolved