]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19638 Add syntax highlighting to code snippets in rule details
authorDavid Cho-Lerat <david.cho-lerat@sonarsource.com>
Fri, 23 Jun 2023 11:29:51 +0000 (13:29 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Jun 2023 20:03:51 +0000 (20:03 +0000)
server/sonar-web/design-system/package.json
server/sonar-web/design-system/src/components/CodeSyntaxHighlighter.tsx
server/sonar-web/yarn.lock

index 3d8cf39ac8716ca78b7cfdd33f56e54d1a3c3510..491108b82d3cb012d377e0ba069b3acaecac2c9e 100644 (file)
@@ -36,7 +36,6 @@
     "eslint-plugin-typescript-sort-keys": "2.3.0",
     "highlight.js": "11.7.0",
     "highlightjs-apex": "1.2.0",
-    "highlightjs-cobol": "0.3.3",
     "highlightjs-sap-abap": "0.2.0",
     "history": "5.3.0",
     "jest": "29.5.0",
index 487b2223be6d9a63a9f40a69278f43b0fa47a757..6243efc4e621d508001e93dd1f6036eeaed7da63 100644 (file)
 import styled from '@emotion/styled';
 import hljs from 'highlight.js';
 import apex from 'highlightjs-apex';
-import cobol from 'highlightjs-cobol';
 import abap from 'highlightjs-sap-abap';
 import tw from 'twin.macro';
 import { themeColor, themeContrast } from '../helpers/theme';
 
 hljs.registerLanguage('abap', abap);
 hljs.registerLanguage('apex', apex);
-hljs.registerLanguage('cobol', cobol);
 
 hljs.registerAliases('azureresourcemanager', { languageName: 'json' });
 hljs.registerAliases('flex', { languageName: 'actionscript' });
index 5c9ee44f84de4a88cce79c1523bd33012dad96af..8d4646d9a3415c7c908c4160f5be0dfbf34de6fa 100644 (file)
@@ -6174,7 +6174,6 @@ __metadata:
     eslint-plugin-typescript-sort-keys: 2.3.0
     highlight.js: 11.7.0
     highlightjs-apex: 1.2.0
-    highlightjs-cobol: 0.3.3
     highlightjs-sap-abap: 0.2.0
     history: 5.3.0
     jest: 29.5.0
@@ -7887,16 +7886,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"highlightjs-cobol@npm:0.3.3":
-  version: 0.3.3
-  resolution: "highlightjs-cobol@npm:0.3.3"
-  dependencies:
-    minimist: ">=1.2.6"
-    mkdirp: ^1.0.4
-  checksum: f59a694703f883ead2fbdf262f36eab583c8bbf64649e59d5de1e13a43e43979ad9030eab69e1cb08f7558ce60ca5cfd1fe42c7a38e34fd8b0baebf06df9118d
-  languageName: node
-  linkType: hard
-
 "highlightjs-sap-abap@npm:0.2.0":
   version: 0.2.0
   resolution: "highlightjs-sap-abap@npm:0.2.0"
@@ -9843,13 +9832,6 @@ __metadata:
   languageName: node
   linkType: hard
 
-"minimist@npm:>=1.2.6":
-  version: 1.2.8
-  resolution: "minimist@npm:1.2.8"
-  checksum: 75a6d645fb122dad29c06a7597bddea977258957ed88d7a6df59b5cd3fe4a527e253e9bbf2e783e4b73657f9098b96a5fe96ab8a113655d4109108577ecf85b0
-  languageName: node
-  linkType: hard
-
 "minimist@npm:^1.2.0, minimist@npm:^1.2.5":
   version: 1.2.5
   resolution: "minimist@npm:1.2.5"