Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

highlighting

syntax_highlight | lpr

August 11, 2022 by Magenaut

Does anyone know of a simple way to produce the PostScript corresponding to a syntax-highlighted version of a source file that can be piped directly to a PostScript printer?

Categories Q&A, Unix & Linux Tags command-line, highlighting, postscript, printing Leave a comment

How can I display syntax highlighting on a file?

August 10, 2022 by Magenaut

Is there a variant of cat that outputs syntax-highlighted lines of code when used on a source file?

Categories Q&A, Unix & Linux Tags cat, command-line, highlighting Leave a comment

How to highlight a word in the output of “cat”?

August 10, 2022 by Magenaut

I can do the following to see if some word is available in the output of “cat”: cat filename | grep word This filters the output and shows only those lines which contain “word”. Now, is it possible to only highlight the “word” in the output, without dropping other lines? Answers: Thank you for visiting … Read more

Categories Q&A, Unix & Linux Tags cat, highlighting Leave a comment

Why does ‘cal’ use weird 08 / ^H / b terminal code for highlighting and how does that work?

August 8, 2022 by Magenaut

When you run cal on Linux, the output for the current month will reverse video highlight the current day. When I send that output to hexdump -c, I get some interesting results:

Categories Q&A, Unix & Linux Tags ansi-term, cal, escape-characters, highlighting Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress