Skip to content

Commit

Permalink
add support for java
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams committed Jan 18, 2023
1 parent af8b0ca commit e37867c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[
"prismjs",
{
"languages": ["js", "css", "yaml", "bash", "batch", "markup", "json", "powershell"],
"languages": ["dockerfile", "java", "js", "css", "yaml", "bash", "batch", "markup", "json", "powershell"],
"plugins": [],
"css": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Eclipse Temurin RPM and DEB packages are now available for installing on your fa

The following name schema is being used:

```output
```text
temurin-<version>-jdk
e.g temurin-17-jdk or temurin-8-jdk
```
Expand Down
1 change: 1 addition & 0 deletions src/components/CodeBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface Props {
const replaceLabelLanguages = (language: string) =>
language
.replace(/powershell/i, 'pwsh')
.replace(/dockerfile/i, 'docker')
.toUpperCase();


Expand Down
26 changes: 13 additions & 13 deletions src/components/CodeBox/light.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
&.prolog,
&.doctype,
&.cdata {
color: slategray;
color: slategray;
}

&.namespace {
opacity: 0.7;
opacity: 0.7;
}

&.property,
Expand All @@ -21,57 +21,57 @@
&.constant,
&.symbol,
&.deleted {
color: #905;
color: #905;
}

&.selector,
&.attr-name,
&.char,
&.builtin,
&.inserted {
color: #690;
color: #690;
}

&.entity,
&.url {
background: hsla(0deg, 0%, 100%, 50%);
color: #9a6e3a;
background: hsla(0deg, 0%, 100%, 50%);
color: #9a6e3a;
}

&.atrule,
&.attr-value,
&.keyword {
color: #07a;
color: #07a;
}

&.function,
&.class-name {
color: #dd4a68;
color: #dd4a68;
}

&.regex,
&.important,
&.variable {
color: #e90;
color: #e90;
}

&.important,
&.bold {
font-weight: var(--font-weight-vold);
font-weight: var(--font-weight-vold);
}

&.italic {
font-style: italic;
font-style: italic;
}

&.entity {
cursor: help;
cursor: help;
}

&.punctuation,
&.operator,
&.string {
background-color: var(--black2);
background-color: var(--black2);
}
}
}

0 comments on commit e37867c

Please sign in to comment.