Импорт os - работа с операционной системой в Python
highlight.js is a popular syntax highlighting library. It supports a wide range of programming languages and provides a simple and flexible way to add code highlighting to your website.
With highlight.js, you can easily highlight code snippets by adding the appropriate class names to your code blocks. For example, to highlight a JavaScript code snippet, you can use the tag <pre class="javascript"> and wrap your code in the <code> tags. This will automatically apply syntax highlighting to your code.
highlight.js also allows you to customize the appearance of your highlighted code by applying custom styles. You can choose from a variety of built-in styles or create your own styles using CSS.
Additionally, highlight.js provides a number of advanced features such as line numbering, automatic language detection, and the ability to manually specify the language for each code block.
Overall, highlight.js is a powerful and convenient tool for adding syntax highlighting to your website. Whether you are building a blog, documentation, or a code sharing platform, highlight.js can help make your code snippets stand out and enhance the readability of your content.