AnsweredAssumed Answered

Syntax Highlighter Functionality

Question asked by Christopher Phillips on Oct 25, 2017
Latest reply on Oct 26, 2017 by Christopher Phillips

My question is regarding the Syntax Highlighter functionality available in Jive when in the rich-text editor: 

 

Syntax highlighter available form the "More" dropdown in the rich-text editor toolbar.

It provides a great way to add code into posts in the community that are properly formatted, with line numbers and color coding. In preview it looks like this: 

view of syntax highlighter code in preview

 

However, when you publish your post it collapses the code block into one line and loses the formatting, seen here: 

 

function identifyRole() {
     var roles = ENV.current_user_roles.toString();
       roles = roles.replace('user,', '');
return roles;
}

 

Does anyone know if this is a bug with the platform or something we have updated in settings? I seem to recall seeing this work previously, but it doesn't seem to be working anymore. Any ideas? 

Outcomes