0

I like how nano highlights bash scripts and I often use GNOME terminal's "Copy as HTML" option to copy/paste the color highlights to LibreOffice when writing documentation. That works fine for short scripts, but kind of a pain for long script.

Is there a way to export the color highlighting with nano? ASCII color-coded output would work as there are programs to translate that to HTML which I can import. Or any existing syntax highlighter that has nano's color scheme?

2
  • set terminal font size to 1 ;-) Commented Jan 25, 2022 at 23:07
  • @frostschutz That's actually not a terrible idea. Using two monitors I can copy 780 lines at a time. Thanks for that. Commented Jan 26, 2022 at 3:12

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.