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 ruby from "refractor/lang/ruby";
|
||||
import rust from "refractor/lang/rust";
|
||||
import solidity from "refractor/lang/solidity";
|
||||
import sql from "refractor/lang/sql";
|
||||
import typescript from "refractor/lang/typescript";
|
||||
import yaml from "refractor/lang/yaml";
|
||||
@@ -63,6 +64,7 @@ const DEFAULT_LANGUAGE = "javascript";
|
||||
ruby,
|
||||
rust,
|
||||
sql,
|
||||
solidity,
|
||||
typescript,
|
||||
yaml,
|
||||
].forEach(refractor.register);
|
||||
|
||||
@@ -24,6 +24,7 @@ export const LANGUAGES = {
|
||||
ruby: "Ruby",
|
||||
rust: "Rust",
|
||||
sql: "SQL",
|
||||
solidity: "Solidity",
|
||||
typescript: "TypeScript",
|
||||
yaml: "YAML",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user