Skip to content

Feature Request: Disable code higlighting #53

Closed

Description

@denysvitali

It would be nice to be able to define whether syntax highlighting should be enabled or not in code blocks.

Currently the highlighter tries to guess the programming language (and this seems to work fine for most cases) - but it keeps the text weirdly highlighted in case of stuff that is supposed to not be highlighted (e.g: plain text files, logs, ...).

It would be nice to have a sort of drop-down to select the programming language, similarly to what you can do in Google Docs, and have an option to select "Plaintext" or "No highlighting"

Activity

  1. hgouveia commented on Jul 27, 2024

    @hgouveia

    plus add the possibility to add code block using markdown

      .```{lang} 
         // my text
      .``` 
    

    ex:

      .```php
         <?php // all good
      .``` 
    
  2. Philipinho commented on Jul 27, 2024

    @Philipinho
    Member

    @hgouveia you can do that already. Give space after typing the opening marks to get a code block.

  3. hgouveia commented on Jul 27, 2024

    @hgouveia

    @hgouveia you can do that already. Give space after typing the opening marks to get a code block.

    oh ok, jus tried and worked, i was doing Tab instead of space, and would the language specification also works?

  4. Philipinho commented on Aug 23, 2024

    @Philipinho
    Member

    @hgouveia yes, the language is picked up too.

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