Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] TSX syntax highlighting #293

Open
haaarshsingh opened this issue Dec 15, 2020 · 1 comment
Open

[bug] TSX syntax highlighting #293

haaarshsingh opened this issue Dec 15, 2020 · 1 comment
Labels
bug Something isn't working frontend good first issue Good for newcomers
Milestone

Comments

@haaarshsingh
Copy link
Contributor

describe the bug

TSX (React TypeScript) syntax doesn't work at all.

to reproduce
steps to reproduce the behavior:

  1. go to https://paste.myst.rs/
  2. click on select language
  3. scroll down to TSX
  4. paste TSX code
  5. hit paste
  6. see no highlighting

expected behavior

Properly higlight the code.

device and browser:

  • os: Linux
  • browser: Brave
  • browser version: 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)
@CodeMyst CodeMyst added bug Something isn't working frontend good first issue Good for newcomers labels Dec 15, 2020
@CodeMyst CodeMyst added this to the 2.2.0 milestone Dec 15, 2020
@CodeMyst
Copy link
Owner

when loading the tsx mode javascript and xml modes should also get loaded, similarly to this: https://github.com/CodeMyst/pastemyst/blob/main/public/scripts/pages/paste.js#L208-L212

should also be done in history.js and pastyEditor.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants