Update the Code Block Formatting in the Community Forum

Right now, the code block formatting in the community forum doesn't work well at all. It could really use an upgrade. Below I've listed all the issues I've run across while using it.

Also, I understand that identifying exactly which type of code is in the code block can be difficult, leading to many of the issues seen below as the current code block doesn't support SQL and reads it as something else. One way to fix this is to allow the user to select what type of code is shown in the code block, like Microsoft has added to Teams and Loop.

All issues listed below occur whether in a comment or original post. For simplicity's sake, I refer to both as post below.

Issues:

  1. When typing in a code block, enclosing something in backticks formats it as inline code and removes the backticks. Domo uses backticks to indicate columns so they are very prevalent. So, not only can you not indicate a column (making copy/paste usability poor), that text also becomes inline code within a code block, which shouldn't even be a thing and makes the text too small.
  2. The color formatting doesn't support SQL nor does it match Domo's color formatting. No SQL keywords are highlighted. Backtick enclosed text is colored the same as single quote enclosed text (red). All symbols are colored yellow, giving weird significance to things like commas and it doesn't match Domo's coloring.
  3. Color formatting doesn't show until after you submit a post, so there is no way to know if it is doing it right and correct it.
  4. All symbols appear as italicized and light grey (instead of black) while in the post editor, but appear normal after posting. It makes writing in the code block difficult and makes you worry it will show up that way in the final post.
  5. Immediately after submitting a post, the color formatting appears but it is very janky. Things like text enclosed in quotes being half highlighted. After refreshing the page, the color formatting shows up correctly and will continue to show up correctly forever after.
  6. Certain words, such as END in a Case statement, are given more weight (almost bolded) for no apparent reason.

Was this comment helpful? Click Agree or Like below.
Did this comment solve your problem? Accept it as the solution!

Tagged:
2
2 votes