SimpleDateFormat: простой формат даты и времени
Highlighted Text Example
The following is an example of how to use <span class="highlight"></span> tags for highlighting code using the highlight.js library:
function sayHello() {
console.log('Hello, World!');
}
Explanation
In the above example, we define a sayHello function that logs 'Hello, World!' to the console. The code is enclosed within <pre> and <code> tags with the class javascript to specify the programming language. The relevant lines are then enclosed within <span class="highlight"></span> tags to apply the highlighting style.