From 0cf1089dad72ac16b62ade21139f71609f6395a7 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 12 Jan 2021 15:22:32 +0100 Subject: [PATCH] code at the docs fixed --- Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js | 5 +---- .../Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js index 661ff43f6..cd4bba65b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js @@ -1618,10 +1618,7 @@ function newSuperalgosDocsDocumentPage() { } function hightlightEmbeddedCode() { - _self.Prism.highlightAllUnder(docsContentDiv, true, onHighlighted) - function onHighlighted() { - // nothing to do here - } + _self.Prism.highlightAllUnder(docsContentDiv, true) } function parseHierarchy(params) { diff --git a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js b/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js index c571f8507..86a486c5d 100644 --- a/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js +++ b/Projects/Superalgos/UI/Spaces/Tutorial-Space/TutorialSpace.js @@ -1272,7 +1272,7 @@ function newSuperalgosTutorialSpace() { } case 'Javascript': { let text = UI.projects.superalgos.utilities.docs.getTextBasedOnLanguage(paragraph) - html = html + '
' + text + '
' + html = html + '
' + text + '
' break } case 'List': { @@ -1342,6 +1342,7 @@ function newSuperalgosTutorialSpace() { html = html + '' tutorialDiv.innerHTML = html + _self.Prism.highlightAllUnder(tutorialDiv, true) } }