#180 Unexpected syntax highlighting when used with skin style

Open
opened 1 year ago by jhabdas · 4 comments
jhabdas commented 1 year ago (Migrated from git.habd.as)
Owner

Something looks wrong with Code Highlighter with Solarized Skin Style applied. Provide better out of box experience and more tightly integrate and document Atom One Chroma .

Something looks wrong with [Code Highlighter](https://after-dark.habd.as/feature/code-highlighter/) with Solarized [Skin Style](https://after-dark.habd.as/feature/skin-styles/) applied. Provide better out of box experience and more tightly integrate and document [Atom One Chroma](https://git.habd.as/comfusion/atom-one-chroma) .
murlakatamenka commented 1 year ago (Migrated from git.habd.as)
Owner

Code Highlighter gets broken when using any skin style (any mix of mode/palette):

[params.hackcss]
  mode = *

or

[params.hackcss]
  palette = *

or both

[params.hackcss]
  mode = *
  palette = *
**Code Highlighter** gets broken when using *any* skin style (any mix of mode/palette): ```toml [params.hackcss] mode = * ``` or ```toml [params.hackcss] palette = * ``` or both ```toml [params.hackcss] mode = * palette = * ```
jhabdas commented 1 year ago (Migrated from git.habd.as)
Poster
Owner

Until fixed you can replace the default skin highlighting styles your own using the library:

https://git.habd.as/comfusion/atom-one-chroma

Until fixed you can replace the default skin highlighting styles your own using the library: https://git.habd.as/comfusion/atom-one-chroma
murlakatamenka commented 1 year ago (Migrated from git.habd.as)
Owner

Or even simpler:

config.toml

pygmentsUseClasses            = false
pygmentsStyle                 = "solarized-dark"
Or even simpler: `config.toml` ```toml pygmentsUseClasses = false pygmentsStyle = "solarized-dark" ```
jhabdas commented 1 year ago (Migrated from git.habd.as)
Poster
Owner

Pygments (Python) is Hugo legacy and not recommended for general use as it's an external binary and not offset of Hugo itself. The old "pygments" names in config make me cringe a little though I still use them too.

Note I built the theme roller linked above for Pygments the first time around, and it like Hugo's boilerplate highlighting themes is backwards compatible under Chroma too.

Think of Atom One Chroma as a tool for designers who like to code and coders using color theory to plug in color swatches to achieve precise color control across their entire site.

Pygments (Python) is Hugo legacy and not recommended for general use as it's an external binary and not offset of Hugo itself. The old "pygments" names in config make me cringe a little though I still use them too. Note I built the theme roller linked above for Pygments the first time around, and it like Hugo's boilerplate highlighting themes is backwards compatible under Chroma too. Think of Atom One Chroma as a tool for designers who like to code and coders using color theory to plug in color swatches to achieve precise color control across their entire site.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.