diff --git a/platypush/backend/http/webapp/src/components/Action/ActionEditor.vue b/platypush/backend/http/webapp/src/components/Action/ActionEditor.vue index e88e16019..aeb01799b 100644 --- a/platypush/backend/http/webapp/src/components/Action/ActionEditor.vue +++ b/platypush/backend/http/webapp/src/components/Action/ActionEditor.vue @@ -269,9 +269,9 @@ export default { highlightedCurlSnippet() { return hljs.highlight( - 'bash', '# Note: Replace the cookie with a JWT token for production cases\n' + - this.curlSnippet + this.curlSnippet, + {language: 'bash'} ).value }, }, diff --git a/platypush/backend/http/webapp/src/components/Action/Response.vue b/platypush/backend/http/webapp/src/components/Action/Response.vue index d228be6ee..e1bf0c656 100644 --- a/platypush/backend/http/webapp/src/components/Action/Response.vue +++ b/platypush/backend/http/webapp/src/components/Action/Response.vue @@ -46,7 +46,7 @@ export default { jsonResponse() { if (this.isJSON) { - return hljs.highlight('json', this.response).value + return hljs.highlight(this.response, {language: 'json'}).value } return null diff --git a/platypush/backend/http/webapp/src/components/panels/Extensions/Config.vue b/platypush/backend/http/webapp/src/components/panels/Extensions/Config.vue index 2d1d8f881..9061836fb 100644 --- a/platypush/backend/http/webapp/src/components/panels/Extensions/Config.vue +++ b/platypush/backend/http/webapp/src/components/panels/Extensions/Config.vue @@ -49,9 +49,9 @@ export default { computed: { highlightedConfigSnippet() { return hljs.highlight( - 'yaml', `# Configuration template. You can add it to ${this.configFile}\n` + this.extension.config_snippet, + {language: 'yaml'} ).value.trim() }, diff --git a/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue b/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue index 5b174f534..1054c7fa8 100644 --- a/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue +++ b/platypush/backend/http/webapp/src/components/panels/Extensions/Install.vue @@ -88,13 +88,13 @@ export default { return ( this.installCmd ? hljs.highlight( - 'bash', this.extension.deps.install_cmd .map((cmd) => `$ ${cmd}`) .join('\n') .trim() ).value : - '# No extra installation steps required' + '# No extra installation steps required', + {language: 'bash'} ) }, },