Skip to content

Commit

Permalink
Post highlighter tweaks (#5663)
Browse files Browse the repository at this point in the history
* dont use modules for ext

* dont highlight R commander output window

* add highlighter back to R command output window
  • Loading branch information
shun2wang authored and JorisGoosen committed Sep 30, 2024
1 parent e80ff5f commit d26c0d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
12 changes: 6 additions & 6 deletions Desktop/components/JASP/Widgets/RCommanderWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,7 @@ Window
width: outputScroll.width

TextArea
{
RSyntaxHighlighterQuick
{
textDocument: outputWindow.textDocument
}

{
id: outputWindow
text: rCmd.output
font: jaspTheme.fontRCode
Expand All @@ -125,6 +120,11 @@ Window
selectByMouse: true
readOnly: true

RSyntaxHighlighterQuick
{
textDocument: outputWindow.textDocument
}

anchors
{
left: parent.left
Expand Down
9 changes: 0 additions & 9 deletions Resources/Help/marked-hljs-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
* MIT Licensed
* https://github.com/markedjs/marked-highlight
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.markedHighlight = {}));
})(this, (function (exports) { 'use strict';

function markedHighlight(options) {
if (typeof options === 'function') {
Expand Down Expand Up @@ -102,7 +97,3 @@

return html;
}

exports.markedHighlight = markedHighlight;

}));

0 comments on commit d26c0d4

Please sign in to comment.