Skip to content

Conversation

@antograssiot
Copy link
Contributor

fixes #56

before:
capture d ecran 2016-07-15 a 16 08 34

after:
capture d ecran 2016-07-15 a 16 08 46

{var $lineRegex = '~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*(?:\\n|$))~'}
<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span class="l"><a href="#$2">$1</a></span>'|noescape}</code></pre>
<pre class="code"><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l">$3</span>'|noescape}</code></pre>
<pre><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l"><a class="l" href="#$2">$1</a>$3</span>'|noescape}</code></pre>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Either this indentation be removed or line above should also be indented.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'll remove it

@markstory markstory merged commit 1bd5cb3 into master Jul 15, 2016
@markstory
Copy link
Member

Thanks @antograssiot

@markstory markstory deleted the sourcedode-#56 branch July 15, 2016 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Layout: API Line Numbers show on top and are broken

3 participants