diff --git a/src/components/codeEditors/aceEditors/aceEditorsStorageHelper.ts b/src/components/codeEditors/aceEditors/aceEditorsStorageHelper.ts index 9a1382c11075c18a68eabcb42a0cc518a48e510b..c31ea5f04ff80acdc7950869bd8b19ea625a8966 100644 --- a/src/components/codeEditors/aceEditors/aceEditorsStorageHelper.ts +++ b/src/components/codeEditors/aceEditors/aceEditorsStorageHelper.ts @@ -201,7 +201,8 @@ export interface AceStoredTabLike { readonly content: string /** - * the programming language + * the programming language name of syntax highlighting in the editor, + * see {@link possibleEditorHighlightPLanguages} * this can not be changed... */ readonly language: string diff --git a/src/constants.ts b/src/constants.ts index 6ca129e0c6183b3dd2ecb7b90aaf238e207d7daa..ebce2fffa37507e9c6a56a22f3d1a1eaf8464cd0 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -13,7 +13,7 @@ import Logger from './helpers/logger' * y - breaking changes / new features * z - fixes, small changes */ -export const versionString = '2.19.2' +export const versionString = '2.19.3' export const supportMail = 'yapex@informatik.uni-halle.de' diff --git a/src/state/actions/doExerciseSite/doExerciseSiteActions.ts b/src/state/actions/doExerciseSite/doExerciseSiteActions.ts index e18e394b7d19acce3a643dd56823841b5963d117..bd7a21ea11e208e788f204081af2a4f7daf659cc 100644 --- a/src/state/actions/doExerciseSite/doExerciseSiteActions.ts +++ b/src/state/actions/doExerciseSite/doExerciseSiteActions.ts @@ -184,7 +184,7 @@ export function resetDoExerciseSolutionToTemplate(releaseCode: string, currentPL return { id: p.id, content: p.content, - language: pLang.internalName + language: pLang.editorHighlightModeName } }) AceEditorsStorageHelper.addEditorWithTabs(doEditorEditorPanelViewEditorId, storedTabs) @@ -503,7 +503,7 @@ export function loadDoExerciseSite(releaseCode: string): AwaitActions { return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) @@ -550,7 +550,7 @@ export function loadDoExerciseSite(releaseCode: string): AwaitActions { return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) diff --git a/src/state/actions/tutorViewSite/tutorViewSiteActions.ts b/src/state/actions/tutorViewSite/tutorViewSiteActions.ts index 8820ca12aa8b3e193d8ce8885c1c3d58fe6d4a62..3e118b6002236a2f5a2a4129a5de4f5a2ec6389d 100644 --- a/src/state/actions/tutorViewSite/tutorViewSiteActions.ts +++ b/src/state/actions/tutorViewSite/tutorViewSiteActions.ts @@ -141,7 +141,7 @@ export function resetTutorEditorToUserSolution(userSolution: SolutionDoExerciseF return { id: p.id, content: p.content, - language: pLang.internalName + language: pLang.editorHighlightModeName } }) AceEditorsStorageHelper.removeEditor(tutorViewEditorPanelViewEditorId) @@ -368,7 +368,7 @@ function _loadTutorViewData(releaseId: number, userId: number, pLangId: number): return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) @@ -389,7 +389,7 @@ function _loadTutorViewData(releaseId: number, userId: number, pLangId: number): return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) @@ -414,7 +414,7 @@ function _loadTutorViewData(releaseId: number, userId: number, pLangId: number): return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) @@ -465,7 +465,7 @@ function _loadTutorViewData(releaseId: number, userId: number, pLangId: number): return { id: p.id, content: p.content, - language: plang.internalName + language: plang.editorHighlightModeName } }) diff --git a/src/types/pLangs.ts b/src/types/pLangs.ts index e5738a1528dd207570a5eed4426b180fb2775568..533cfc6056903bc27342f0f82e8576e3732a1004 100644 --- a/src/types/pLangs.ts +++ b/src/types/pLangs.ts @@ -25,10 +25,10 @@ export interface PLangFullBase { readonly fileExtensionsWithDot: string | null /** * the highlight mode for the editor (currently ace) - * @see possibleEditorHighlightPLanguages for all possible langs + * {@link possibleMarkdownHighlightPLanguages} for all possible langs * * for markdown - * @see possibleMarkdownHighlightPLanguages but this is not needed because from the ```[lang] we directly dynamic import the lang + * {@link possibleMarkdownHighlightPLanguages} but this is not needed because from the ```[lang] we directly dynamic import the lang */ readonly editorHighlightModeName: string | null