Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

(Bash) Highlighted colors doesn't look correct #4288

Copy link
Copy link
@tuyen-at-work

Description

@tuyen-at-work
Issue body actions

Describe the issue
Issues:

  • Only highlight part of command paramters
  • Inconsistent color between lines

Which language seems to have the issue?
Bash

Are you using highlight or highlightAuto?
highlight

...

Sample Code to Reproduce

1st example:

epi deployment start \
  --project my-project \
  --deployment-package my-project.cms.app.1.0.0.nupkg \
  --env Integration \
  --direct-deploy true \
  --use-maintainance-page true \
  --wait true \
  --show-progress true

2nd example:

epi deployment start \
  --project my-project \
  --deployment-package my-project.cms.app.1.0.0.nupkg \
  --env Integration \
  --direct-deploy true \
  --use-maintainance-page true \
  --wait true \
  --show-progress true

For partial highlight, I see one part has hljs-built_in class, while the other doesn't has any class.

Expected behavior

  • Should highlight the whole command paramter name
  • Command parameter names should have same colors across lines

Additional context
Live example:
https://cli.eshn.dev/epi-deployment-start-command.html#samples

Image

Reproduce on Highlight.js demo:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.