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

Lazy loading less common languages for syntax highlighting #2388

Merged
merged 5 commits into from
Mar 14, 2024

Commits on Mar 11, 2024

  1. Use fewer syntax highlighter languages.

    Reduces client.js size by about 250kB (800kB uncompressed)
    
    Common languages:
    bash, c, cpp, csharp, css, diff, go, graphql, ini, java, javascript,
    json, kotlin, less, lua, makefile, markdown, objectivec, perl,
    php-template, php, plaintext, python-repl, python, r, ruby, rust, scss,
    shell, sql, swift, typescript, vbnet, wasm, xml, yaml
    
    Additionally enabled languages:
    dockerfile, pgsql
    matc-pub committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    ef715ee View commit details
    Browse the repository at this point in the history
  2. Configurable syntax highlighter languages

    Allows to individually enable languages.
    matc-pub committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    9882602 View commit details
    Browse the repository at this point in the history
  3. Lazy load syntax highlighter languages

    Allows to enable additional languages that will not be autodetected.
    matc-pub committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    25e1853 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    956ebbe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5e2ee2e View commit details
    Browse the repository at this point in the history