Tldr: No syntax highlighting

Created on 27 Nov 2017  路  4Comments  路  Source: tldr-pages/tldr

I'v just installed tldr with npm install -g tldr.
But seems like the syntax highlight didn't work like the screenshot on the readme page.

img

Most helpful comment

The screenshot uses a custom theme. By default we do not add any coloring because there are large varieties of terminals and themes. So adding any text coloring from itself might clash with the terminal theme.

Please look into this section - https://github.com/tldr-pages/tldr-node-client#configuration if you want to use a preset theme or even you can create your own theme.

All 4 comments

Providing some more information might be helpful

  • What terminal emulator are you using?
  • What OS are you using?
  • Could you provide a screenshot of your output?
  • Have you taken any steps to try and troubleshoot that have not worked?

The screenshot uses a custom theme. By default we do not add any coloring because there are large varieties of terminals and themes. So adding any text coloring from itself might clash with the terminal theme.

Please look into this section - https://github.com/tldr-pages/tldr-node-client#configuration if you want to use a preset theme or even you can create your own theme.

@agnivade Problem solved ! Thank you so much!!
Maybe it's a good idea to put a default .tldrrc to the home directory at installation.

That won't make a difference really. You still have to edit the .tldrrc file.

I am a fan of softwares that just work out of the box without any need for configurations or customizations. Only if needed, the user should be able to configure it appropriately.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dikarel picture dikarel  路  3Comments

waldyrious picture waldyrious  路  3Comments

TobiasRoland picture TobiasRoland  路  3Comments

mikerouxfr picture mikerouxfr  路  3Comments

kelthuzadx picture kelthuzadx  路  3Comments