Skip to content

Turn on syntax highlight for all related programming languages #17307

Closed
apache/pulsar-site
#187

Description

@tisonkun

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

This can be a trivial config change on the docusaurus.config.js file:

    prism: {
      // theme: lightCodeTheme,
      // darkTheme: darkCodeTheme,
      theme: require("prism-react-renderer/themes/dracula"),
      additionalLanguages: ["powershell", "java", "go", "c", "cpp", "python"],
    },

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. dave2wave commented on Aug 29, 2022

    @dave2wave
    Member

    Please submit a PR

  2. tisonkun commented on Aug 30, 2022

    @tisonkun
    MemberAuthor
  3. tisonkun commented on Aug 30, 2022

    @tisonkun
    MemberAuthor

    See also #17342 for the main repo part.

    Thanks for your reminder @dave2wave!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions