Skip to content

[IMPROVE] Load code highlighting languages on demand and fixes on new message parser#23232

Merged
ggazzo merged 16 commits intodevelopfrom
fix/message-parser
Sep 23, 2021
Merged

[IMPROVE] Load code highlighting languages on demand and fixes on new message parser#23232
ggazzo merged 16 commits intodevelopfrom
fix/message-parser

Conversation

@ggazzo
Copy link
Member

@ggazzo ggazzo commented Sep 20, 2021

Proposed changes (including videos or screenshots)

Now we have this setting called 'Code highlighting languages list' where you can define the languages that you want to be loaded by default.

Issue(s)

closes #20766
closes #8989
closes #21184
closes #7707
closes #21184
closes #5218
closes #11675
closes #19933

Steps to test or reproduce

Further comments

@ggazzo ggazzo requested a review from a team September 20, 2021 02:38
@ankar84
Copy link

ankar84 commented Sep 20, 2021

probably closes #22280

@ggazzo ggazzo force-pushed the fix/message-parser branch 2 times, most recently from b9cee5d to 3da442b Compare September 21, 2021 17:13
@ggazzo ggazzo marked this pull request as ready for review September 22, 2021 14:39
@ggazzo ggazzo changed the title [NEW] New Message Parser and Adding code languages by demand [IMPROVE] New Message Parser and Adding code languages by demand Sep 22, 2021
@sampaiodiego
Copy link
Member

image

maybe it is a good time do update?

Copy link
Member

@sampaiodiego sampaiodiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

functionality wise it seems good.

I'll just reinforce the need of an upgrade.. current version is also showing a message on browser's console:
image

"Message_BadWordsWhitelist": "Remove words from the Blacklist",
"Message_BadWordsWhitelistDescription": "Add a comma-separated list of words to be removed from filter",
"Message_Characther_Limit": "Message Character Limit",
"Message_Code_highlight": "Message Code highlight",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is explanatory enough to admins..

I'd consider something like "Code languages highlights"
And also add a description to explain better what it does, like "Comma separated list of languages (link to list of supported languages https://github.com/highlightjs/highlight.js/tree/9.18.5#supported-languages ) that will be used to highlight code blocks"

@sampaiodiego sampaiodiego changed the title [IMPROVE] New Message Parser and Adding code languages by demand [IMPROVE] Load code highlighting languages on demand Sep 23, 2021
@sampaiodiego sampaiodiego changed the title [IMPROVE] Load code highlighting languages on demand [IMPROVE] Load code highlighting languages on demand and fixes on new message parser Sep 23, 2021
@ggazzo ggazzo merged commit 5c1a762 into develop Sep 23, 2021
@ggazzo ggazzo deleted the fix/message-parser branch September 23, 2021 22:07
@sampaiodiego sampaiodiego mentioned this pull request Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Comments