/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/11819652#M1793Feb 09, 2021
Feb 09, 2021
Copy link to clipboard
Copied
This forum platform (Khoros) has NEVER had code syntax highlighting. All code styles are wiped on submit. It has been that way ever since Khoros launched.
Nancy O'Shea— Product User, Community Expert & Moderator
/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/11819928#M1795Feb 09, 2021
Feb 09, 2021
Copy link to clipboard
Copied
I'm sorry but I must respectfully disagree. This platform has NEVER supported syntax highlighting on submit, at least not from any of my desktop browsers and not with any code that I've inserted from the </> icon including HTML, CSS, XML/SVG, JavaScript, PHP, etc...
If you did see syntax highlighting, perhaps it came from another source -- a screenshot, code pen or js fiddle.
Nancy O'Shea— Product User, Community Expert & Moderator
/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/11820139#M1796Feb 09, 2021
Feb 09, 2021
Copy link to clipboard
Copied
The only time I've had the syntax highlighting show since the Khoros forum was launched is when composing a post. Once it's posted, I've only ever seen black text.
Which is unfortunate, given the weight of loading the syntax highlighting javascript for every page. 😞
/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/11820352#M1797Feb 09, 2021
Feb 09, 2021
Copy link to clipboard
Copied
Once it's posted, I've only ever seen black text.
=============
Yes, @Amebr, that's correct. Once the submit button is clicked, all code styles vanish for some mysterious reason that's never been fully explained. This forum platform is leased from a 3rd party; not made by Adobe. Since there are other more pressing issues, I guess code formatting is not a big priority.
Nancy O'Shea— Product User, Community Expert & Moderator
/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/13437052#M1798Dec 21, 2022
Dec 21, 2022
Copy link to clipboard
Copied
«Since there are other more pressing issues, I guess code formatting is not a big priority.»
Nancy, but it would be really worth to put the weight of Adobe on that Khoros team: Discussing scripting issues etc. IMHO require an adeaquate presentation of the code. And since the highlighting is there while editing, why the heck do they wipe out it on submit?
It was claimed that Khores never supported syntax highlighting. But the effect appears about since mid January 2021 (maybe before that time the forum SW was not Khoros?). Before that syntax highlighting was present in submitted posts. Unfortunately I do not have any pdf to prove.
Nancy O'Shea, Product User & Community Expert posted this comment 0n 2021-02-10:
Once the submit button is clicked, all code styles vanish for some mysterious reason that's never been fully explained. This forum platform is leased from a 3rd party; not made by Adobe. Since there are other more pressing issues, I guess code formatting is not a big priority.
My comment is this:
«Since there are other more pressing issues, I guess code formatting is not a big priority.»
Nancy, but it would be really worth to put the weight of Adobe on that Khoros team: Discussing scripting issues etc. IMHO require an adeaquate presentation of the code. And since the highlighting is there while editing, why the heck do they wipe out it on submit?
This is a known issue that's been reported & discussed many times. If it was an easy fix, I'm sure Khoros would have corrected syntax highlighting styles by now but they haven't.
As a workaround, I embed an HTML <iframe> from JS Fiddle or CodePen into my reply. An example of an embedded Fiddle...
Hope that helps.
[Moderator merged with the original topic to avoid confusion.]
Nancy O'Shea— Product User, Community Expert & Moderator
/t5/using-the-community-bugs/forum-no-more-shows-syntax-highlighting-for-code-blocks/idc-p/13438905#M1803Dec 22, 2022
Dec 22, 2022
Copy link to clipboard
Copied
Nancy, that's a good idea! However it adds to the list of required applications to do the supporting work...
Can you point me to a resource answering this question: How do I get the required URL of a JS Fiddle (which is a pane/cell on the Fiddle page) similar to yours to create the IFRAME: