Hi All,
I have an issue with d7 version,All the code(multiple lines) in Syntax Highlighter Block is displayed in a single line along with break tags (br),I have made all the required configuration like 1) placing the syntax highlight filter above line break conversion filter.A br tag is added for each new line(seen after disabling rich text editor) but it has no effect,instead br tag appears in the syntax highlighter block along with the code upon saving.
Unable to figure out the solution...
So I am in a urgent need of solution for this.I have attached an image of the "Full html" filter format order.

Thank you

Comments

pradyumnahpt’s picture

StatusFileSize
new25.6 KB

Hi all,
There is an update to the issue,the code appears in single line when the "Html script" checkbox in the Syntax highlighter insert interface is checked.beacuse it does not recognize the newline break tag as a html snippet and assigns a css class called "plain",so it is rendered as it is in the single line code instead of inserting a new line (no line break functionality)... please see the attached firebug screen shot of the rendering of break tag.
also if i uncheck the "Html script" check box,the break tag works fine and code is rendered across multiple lines,but there is no gutter for line numbering,and no colouring effect for different html,php elements.

Please provide any solution as to how to fix this issue.

Thanks.

fizk’s picture

Priority: Critical » Normal

Are you using version 7.x-1.1 or 7.x-2.0?

If you are using 7.x-1.1, can you try using 7.x-2.0?

pradyumnahpt’s picture

Version: 7.x-1.1 » 7.x-2.0

Hi fizk,

Really Sorry,I am using the the 7.x-2.0 version and not 7.x-1.1,it was a misselection while creating the issue.The same issue is on 2 different sites too...

Thanks

pradyumnahpt’s picture

Hi fizk,

It works for me, when i place the code(the code has html entities) by disabling the rich text editor.but not when rich text editor is on...because the html tag brackets are converted to ampersand symbols.and so break tag is not recognized as part of html.you had asked to disable rich text editor,here https://drupal.org/node/1164172 .is there a way so that I can place the embedded html code as it is, with rich text editor enabled in d7.Please correct me if I am wrong.

Thanks

fizk’s picture

pradyumnahpt, try moving "Correct faulty and chopped off HTML" to be above "Syntax highlighter".

pradyumnahpt’s picture

fizk, Thanks for the suggestion !!!!! but, I was able to solve the issue by using the
https://drupal.org/project/wysiwyg_preelementfix module,the patches to make a d7 version is present in
https://drupal.org/node/1445984 .absence of this module had created this issue,and this fixes the line break issue.

Thank you

fizk’s picture

Status: Active » Closed (duplicate)

Excellent! I'm glad you found a solution. I'll look into the patches in that issue.

fizk’s picture

Issue summary: View changes

br tag was missing