Hightlights inside the code on github

Asked

Viewed 22 times

0

I am making a documentation (REAMD.Md) markdown to be very clear, beginner, on github. When I put the codes, I use the syntax of the code to highlight the colors, aesthetic even, the reading is better.

But I’m willing to show you the step-by-step github inside the . Md

```jsx
para código jsx aqui, por exemplo
```

or

```cmd
mkdir teste
cd teste
```

has some hightlight code to highlight the git init, git push, etc commands inside the github markdown?

  • Maybe the bash do the Highlight, Voce tried it?

  • tried, didn’t roll =/ by the way, I used it and at least the "quotes" I put were of another color...

  • 1

    Try to use gitattributes. Here’s a list of possible hightlights. Apparently, syntax for the bash or shell are not working on github.

1 answer

1


There is no Highlighter specific to the git commands, but you can use the gitattributes (does not work very well with special characters, however):

How git commands are actually commands shell, no problem in using shell as Highlighter:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.