I am using SyntaxHighlighter Evolved v.3x for highlighting my codes on Wordpress. In v.3x version no support for word wrapping. How can I do it word wrappable? I have to use v.3x because of I hate flash. I tampered with the codes a bit, but I couldn't get anything.
How to Add Word Wrap Propery to SyntaxHighlighter Evolved v.3x
183 Views Asked by Johnny Wind At
1
There are 1 best solutions below
Related Questions in WORDPRESS
- How to add the dynamic new rows from my registration form in my database?
- Wordpress Site - pages have low text-HTML ratio
- wordpress delete unwanted location
- How to create a facet for WP gridbuilder that displays both parent and child custom fields?
- How to change woocomerce or full wordpress currency with value from USD to AUD
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- Caching private wordpress rest endpoints
- How do i get my close button to work on a popup?
- SQL query to get student enrolled in this month in a course - Moodle
- What wordpress plugin prevent sharing of contact information amongst users?
- Password protected or private URL one-time viewable video access
- Download button not working in wordpress website. How can solve it?
- WP toolkit problem after deleting wordpress site manually
- TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
- New Order Email Details Missing // Woocommerce / Woocommerce Bookings
Related Questions in WORD-WRAP
- How can I make text wrap around to the same line in a div?
- Setting wordwrap width in a Textbox VB Dot Net Visual Basic
- Nvim with prose: how to set up proper `autoformat` line-wrapping
- Automatic word spacing to fit line CSS
- General text wrap program in C
- How to wrap a tikzpicture?
- Break/wrap long text of column names in Pandas dataframe plain text to_string output?
- Configure HTML element to behave like text character
- Word-wrap issue
- the text value doesn't fit in the button
- Why is the wrap=hard attribute not functioning as expected in a textarea element?
- Format text that is splitted accross span that aren't on the same level
- css "word break" is not working when I use Korean
- Automatic and manual text wrapping in Java
- Wow slider thumbnails wrapping
Related Questions in SYNTAXHIGHLIGHTER
- How to get Visual Studio Code language support to recognize new functions in SQL syntax highlighting
- How to remove the unwanted new lines in GitHub::gist?
- How can I add code syntax highlighting in a NSTextView using highlighter.js
- Pyqt5/Pyside2 running QRegExp and QSyntaxHighlighter response very slow
- Any Pygments lexer for the Mustache templating language?
- How do I enable C++ highlighting in the Scintilla control in the wxPython library?
- Removing three highlighted dots in Rider JetBrains
- How to make React SyntaxHighlighter display multiple lines
- Prism JS line number misaligned in Chrome
- Reactmarkdown can not escape quotes and backticks
- I want to post my 'raw code' at 'Markdown'
- How to Add Word Wrap Propery to SyntaxHighlighter Evolved v.3x
- npm building issues for SyntaxHighlighter
- how to use/implement input tags and custom jsx tag for syntax highlighting using Highlight.JS?
- How to add XQuery syntax highlighting to NotePad++ (NPP) 7.x?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When you use the Syntaxhighlighter Evolved plugin, it actually generates you an HTML code like this:
And here is the screenshot of the result:
When you analyze the codes, you will see that the row numbers in the
gutterclass and the row numbers in thecontainerclass are the same. For this reason, the problem will be solved when you equal the line heights. For this, I found a solution like below:I recommend that you put your code in a customizable javascript file within your theme so that it is not affected by updates.
And here is the screenshot of the result:
I don't know if there is a better solution to this. But the problem seems to arise from creating a separate
guterclass. Instead, it would be better to add line numbers in thecontainerclass. But I don't know how hard this is. But as a result, the problem seems to be resolved.