Skip to content

Add syntax highlighting #22

Description

@HarshKapadia2
  • In the RawDataDisplay component, add syntax highlighting to the Object Content field.
  • One way to implement it could be to extract the file extension form the Object Name field and use that to identify the language.
    • Eg: script.js ➡️ js ➡️ javascript
      • Maybe js itself will work and the last transformation of js to javascript might not be required, but then would mjs work?
  • A dynamic syntax highlighter would be required, not a static one, because nothing is server rendered and files can be of any language.
  • Language support will have to be decided.
    • Maybe HTML, CSS, JS, Shell, Bash, YAML and Python for now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions