Оформите приведённый текст с помощью элементов <pre>, <ins> и <del>, чтобы он соответствовал рис. 1.
Рис. 1.
diff --git a/pathauto.test b/pathauto.test
index 298f88222..f6b4af23e 100644
--- a/pathauto.test
+++ b/pathauto.test
@@ -109,7 +109,7 @@ class PathautoTestHelper extends DrupalWebTestCase {
return $term;
}
- function assertEntityPattern($entity_type, $bundle, $language = LANGUAGE_NONE, $expected) {
+ function assertEntityPattern($entity_type, $bundle, $language, $expected) {
drupal_static_reset('pathauto_pattern_load_by_entity');
$this->refreshVariables();
$pattern = pathauto_pattern_load_by_entity($entity_type, $bundle, $language);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>del и ins</title>
<style>
pre {
line-height: 1.4; /* Межстрочный интервал */
}
del, ins {
text-decoration: none; /* Убираем исходное оформление */
padding: 0.1em 0.3em; /* Расстояние от текста до края */
}
del {
background-color: #fee7dc; /* Цвет фона */
}
ins {
background-color: #e4efc7; /* Цвет фона */
}
</style>
</head>
<body>
<pre><code>diff --git a/pathauto.test b/pathauto.test
index 298f88222..f6b4af23e 100644
--- a/pathauto.test
+++ b/pathauto.test
@@ -109,7 +109,7 @@ class PathautoTestHelper extends DrupalWebTestCase {
return $term;
}
- <del>function assertEntityPattern($entity_type, $bundle, $language = LANGUAGE_NONE, $expected) {</del>
+ <ins>function assertEntityPattern($entity_type, $bundle, $language, $expected) {</ins>
drupal_static_reset('pathauto_pattern_load_by_entity');
$this->refreshVariables();
$pattern = pathauto_pattern_load_by_entity($entity_type, $bundle, $language);</code></pre>
</body>
</html>