Skip to content

[Feature request] language guess for code blocks #361

Open

Description

@cglacet

I've bee looking for a bit but I can't find a way to add language detection to code blocks. Am I missing something or is this feature not implemented yet?

For now it gives something similar to what we have on github:

def f(x):
    return x
def f(x):
    return x

I would like to have something like in stackoverflow:

Screenshot 2020-06-29 at 02 16 02

If this doesn't exist, do you have an idea on what can be done? Thanks.

Activity

  1. nicholasserra commented on Jun 29, 2020

    @nicholasserra
    Collaborator

    Not implemented. Would require some kind of library to detect the language in the code block.

  2. added a commit that references this issue on May 18, 2026
    f1fdc5b
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

    FeatureFeature request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions