-
Notifications
You must be signed in to change notification settings - Fork 79
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
SH Code Block misaligning lines on front end #233
Comments
Additional information on the post: – When you moved servers and ‘duplicated’ your site, how did you perform the duplication (plugin, a tool on your host, etc? I’m using Cloudways. They have a button that allows you to clone a server and move it to the next one. It didn’t involve anything from my side. AFAIK they duplicated everything exactly. – Did you update anything after the move? So in essence things were identical at the change. I have later on updated some plugins to stay up to date, including SyntaxHighlighter Evolved. – When you say the characters don’t align in the block (in the post edit screen), does that happen as you’re typing, after you save, or something else? The misaligning happens straight away when I type code, and also remains after I save. The only part on my website where it works, is at the front-end that the readers see. By the way, I’m using the Syntaxhighlighter Block, and no shortcode. – what version of SyntaxHighlighter are you using? (current is 3.6.1, released November 2021). I’m currently using Version 3.6.1, but had an earlier version before. – how are you aligning things? That is, are you hitting the space bar, or are you using the TAB key? I am using the spacebar to align things. My feeling is that the plugin spaces based on the width of a character, instead of using a monospaced distance – which editor (v2 or v3) do you have set in the SyntaxHighlighter->Settings? I’m using Version 3.x – were you using the SyntaxHighlighter block before you moved servers? Hope this helps. Do let me know if I can help in any way to trouble shoot. |
In the forums, a user states he is no longer able to properly align his code (comments) in the post edit screen using the SH block, although it appears correctly aligned on the frontend.
See:
his post edit screen: https://snipboard.io/KVCgqU.jpg
his front end: https://snipboard.io/vHh7kW.jpg
I tested this, and had the opposite happen!
I'm able to align in my post edit screen :
https://cloudup.com/clxNHXZMY6v
but the code is NOT aligned on the frontend:
https://cloudup.com/cJ96dvq7rAv
The alignment works properly when using the regular Code block:
https://cloudup.com/cnsYW1kDsCz
WP: 5.9.1
SHE: 3.6.1
The text was updated successfully, but these errors were encountered: