feat: Adding Solidity support (#3303)
* Adding Solidity support * Update CodeFence.ts Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -30,6 +30,7 @@ import powershell from "refractor/lang/powershell";
|
|||||||
import python from "refractor/lang/python";
|
import python from "refractor/lang/python";
|
||||||
import ruby from "refractor/lang/ruby";
|
import ruby from "refractor/lang/ruby";
|
||||||
import rust from "refractor/lang/rust";
|
import rust from "refractor/lang/rust";
|
||||||
|
import solidity from "refractor/lang/solidity";
|
||||||
import sql from "refractor/lang/sql";
|
import sql from "refractor/lang/sql";
|
||||||
import typescript from "refractor/lang/typescript";
|
import typescript from "refractor/lang/typescript";
|
||||||
import yaml from "refractor/lang/yaml";
|
import yaml from "refractor/lang/yaml";
|
||||||
@@ -63,6 +64,7 @@ const DEFAULT_LANGUAGE = "javascript";
|
|||||||
ruby,
|
ruby,
|
||||||
rust,
|
rust,
|
||||||
sql,
|
sql,
|
||||||
|
solidity,
|
||||||
typescript,
|
typescript,
|
||||||
yaml,
|
yaml,
|
||||||
].forEach(refractor.register);
|
].forEach(refractor.register);
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export const LANGUAGES = {
|
|||||||
ruby: "Ruby",
|
ruby: "Ruby",
|
||||||
rust: "Rust",
|
rust: "Rust",
|
||||||
sql: "SQL",
|
sql: "SQL",
|
||||||
|
solidity: "Solidity",
|
||||||
typescript: "TypeScript",
|
typescript: "TypeScript",
|
||||||
yaml: "YAML",
|
yaml: "YAML",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user