diff options
| author | jackyzha0 <[email protected]> | 2020-05-21 23:44:49 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-21 23:44:49 -0700 |
| commit | f8dbed3496d10031dee750da08ff26b93d027440 (patch) | |
| tree | fcd78f2f5f14f62f2f687a47a107b826b10f57ff | |
| parent | Merge pull request #28 from jackyzha0/save-png (diff) | |
| download | ctrl-v-f8dbed3496d10031dee750da08ff26b93d027440.tar.xz ctrl-v-f8dbed3496d10031dee750da08ff26b93d027440.zip | |
order languages alphabetically
| -rw-r--r-- | frontend/src/components/PasteInfo.js | 2 | ||||
| -rw-r--r-- | frontend/src/components/renderers/Code.js | 24 |
2 files changed, 13 insertions, 13 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js index b63eedb..28141ac 100644 --- a/frontend/src/components/PasteInfo.js +++ b/frontend/src/components/PasteInfo.js @@ -71,7 +71,7 @@ const PasteInfo = (props) => { type="button" onClick={() => exportComponentAsJPEG(props.compref, `paste-${props.hash}.png`)} > - save + save png </Button> {renderable()} <ThemeInput diff --git a/frontend/src/components/renderers/Code.js b/frontend/src/components/renderers/Code.js index 3d84adb..767b533 100644 --- a/frontend/src/components/renderers/Code.js +++ b/frontend/src/components/renderers/Code.js @@ -11,26 +11,26 @@ export const THEMES = Object.freeze({ }) export const LANGS = Object.freeze({ - 'go': 'go', - 'python': 'python', - 'js': 'javascript', - 'html': 'html', - 'css': 'css', + 'bash': 'bash', 'c': 'c', 'c++': 'cpp', 'c#': 'cs', - 'ruby': 'ruby', + 'css': 'css', 'docker': 'dockerfile', - 'bash': 'bash', - 'raw': 'text', + 'go': 'go', + 'haskell': 'haskell', + 'html': 'html', 'java': 'java', + 'js': 'javascript', + 'latex': 'latex', 'lisp': 'lisp', - 'haskell': 'haskell', - 'scala': 'scala', - 'markdown': 'markdown', 'makefile': 'makefile', + 'markdown': 'markdown', 'php': 'php', - 'latex': 'latex', + 'python': 'python', + 'raw': 'text', + 'ruby': 'ruby', + 'scala': 'scala', 'yaml': 'yaml' }) |