admin管理员组

文章数量:1434829

According to GitHub syntax highlighting, keyword for pip requirements syntax highlighting can be found on languages.yml. According to the link, the keyword is Pip Requirements, but the following markdown snippet isn't highlighted on GitHub:

```Pip Requirements
pandas==2.2.3
```

How to syntax highlight pip requirements?

According to GitHub syntax highlighting, keyword for pip requirements syntax highlighting can be found on languages.yml. According to the link, the keyword is Pip Requirements, but the following markdown snippet isn't highlighted on GitHub:

```Pip Requirements
pandas==2.2.3
```

How to syntax highlight pip requirements?

Share Improve this question asked Nov 17, 2024 at 2:07 pegasuspegasus 851 silver badge8 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 1

Use "pip-requirements" instead of "Pip Requirements":

```pip-requirements
--editable .
foo==1.2
bar==3.4
baz[quux]>=1.0.1
```

It does not seem to render on Stack Overflow, but here is a screencap of markdown rendered from Github:

Source: https://gist.github/wimglenn/204dd744240848d8cbf2b9beb6eb4a83

本文标签: pythonPip requirements syntax highlighting in GitHub markdownStack Overflow