Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from allejo/feature/line-number-support
Add support for highlighting specific lines
- Loading branch information
Showing
9 changed files
with
445 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...deRendererTest__it_highlights_code_blocks_with_a_specified_language_and_line_range__1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<div> | ||
<p>Which looks like this in use:</p> | ||
<pre> | ||
<code class="language-html hljs xml" data-lang="html"> | ||
<span class="loc"> | ||
<span class="hljs-tag"><<span class="hljs-name">generic-form</span></span> | ||
</span> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"><span class="hljs-attr">:showBackButton</span>=<span class="hljs-string">"true"</span></span> | ||
</span> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"> @<span class="hljs-attr">back</span>=<span class="hljs-string">"goBack"</span></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag">></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag"><<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"text"</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"send-to"</span>></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag"><<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"number"</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"amount"</span> /></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag"></<span class="hljs-name">generic-form</span>></span> | ||
</span> | ||
<span class="loc"/> | ||
</code> | ||
</pre> | ||
<p>Something feels wrong here.</p> | ||
</div> |
31 changes: 31 additions & 0 deletions
31
...erTest__it_highlights_code_blocks_with_a_specified_language_and_lines_out_of_order__1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0"?> | ||
<div> | ||
<p>Which looks like this in use:</p> | ||
<pre> | ||
<code class="language-html hljs xml" data-lang="html"> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"><<span class="hljs-name">generic-form</span></span> | ||
</span> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"><span class="hljs-attr">:showBackButton</span>=<span class="hljs-string">"true"</span></span> | ||
</span> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"> @<span class="hljs-attr">back</span>=<span class="hljs-string">"goBack"</span></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag">></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag"><<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"text"</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"send-to"</span>></span> | ||
</span> | ||
<span class="loc"> | ||
<span class="hljs-tag"><<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">"number"</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"amount"</span> /></span> | ||
</span> | ||
<span class="loc highlighted"> | ||
<span class="hljs-tag"></<span class="hljs-name">generic-form</span>></span> | ||
</span> | ||
<span class="loc"/> | ||
</code> | ||
</pre> | ||
<p>Something feels wrong here.</p> | ||
</div> |
Oops, something went wrong.