Uncategorized
-
Adding Colors to Text in Markdown
Introduction Markdown is a lightweight markup language that keeps formatting simple and readable. However, one limitation many users encounter is the lack of native support for colored text. While pure Markdown doesn’t offer this feature, there’s an elegant solution: using LaTeX color commands through inline math notation. In this guide, we’ll explore how to add vibrant colors to your text while maintaining the simplicity and portability of Markdown syntax. The Solution: LaTeX with Markdown The most straightforward way to add colors to text in Markdown is by combining LaTeX’s \textcolor command with inline math delimiters. This works in most Markdown renderers that support LaTeX math notation. Basic Syntax This renders…
-
💡Powershell Tip – Search directories and subdirectories for files with specific content
I’d like to share a small PowerShell script that scans all subdirectories for specific files (for example, *.yaml and *.yml) and searches them for a specific string (e.g., “ansible.builtin.template”). The result is returned with the location (name and path of the file, and line number of the search string in the file). What it does: Sometimes I want to save my results to a file and explore them further. To save the results to a CSV file, adapt the script as follows: