Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scilab highlighting has not valid html links #111

Closed
Klap-in opened this issue Oct 3, 2018 · 1 comment
Closed

scilab highlighting has not valid html links #111

Klap-in opened this issue Oct 3, 2018 · 1 comment

Comments

@Klap-in
Copy link

Klap-in commented Oct 3, 2018

Trying with Scilab code shows (looks as an similar issue as #36)

for n=[1,2,5,10,20,50,100]
    plot2d([-1.5,-1/n,1/n,1.5],[0,0,1,1],2+floor(2*log(n)))
end

becomes:

scilab.org/product/dic-mat-sci/M2SCI_doc.htm">for n=[1,2,5,10,20,50,100]
    plot2d([-1.5,-1/n,1/n,1.5],[0,0,1,1],2+floor(2*log(n)))
scilab.org/product/dic-mat-sci/M2SCI_doc.htm">end

Testing this example at http://qbnz.com/highlighter/php_highlighter.php replicate this behavior as well.

Copy of the html from that tester:

<ol><li class="li1"><div class="de1"><a href="http://www.<a href="http://www.scilab.org/product/dic-mat-sci/M2SCI_doc.htm"><span class="kw3">scilab</span></a>.org<span class="sy0">/</span>product<span class="sy0">/</span>dic<span class="sy0">-</span>mat<span class="sy0">-</span>sci<span class="sy0">/</span>M2SCI_doc.htm"><span class="kw1">for</span></a> n<span class="sy0">=</span><span class="br0">&#91;</span><span class="nu0">1</span><span class="sy0">,</span><span class="nu0">2</span><span class="sy0">,</span><span class="nu0">5</span><span class="sy0">,</span><span class="nu0">10</span><span class="sy0">,</span><span class="nu0">20</span><span class="sy0">,</span><span class="nu0">50</span><span class="sy0">,</span><span class="nu0">100</span><span class="br0">&#93;</span></div></li>
<li class="li1"><div class="de1">&nbsp; &nbsp; <a href="http://www.scilab.org/product/dic-mat-sci/M2SCI_doc.htm"><span class="kw3">plot2d</span></a><span class="br0">&#40;</span><span class="br0">&#91;</span><span class="sy0">-</span><span class="nu0">1.5</span><span class="sy0">,-</span><span class="nu0">1</span><span class="sy0">/</span>n<span class="sy0">,</span><span class="nu0">1</span><span class="sy0">/</span>n<span class="sy0">,</span><span class="nu0">1.5</span><span class="br0">&#93;</span><span class="sy0">,</span><span class="br0">&#91;</span><span class="nu0">0</span><span class="sy0">,</span><span class="nu0">0</span><span class="sy0">,</span><span class="nu0">1</span><span class="sy0">,</span><span class="nu0">1</span><span class="br0">&#93;</span><span class="sy0">,</span><span class="nu0">2</span><span class="sy0">+</span><a href="http://www.scilab.org/product/dic-mat-sci/M2SCI_doc.htm"><span class="kw3">floor</span></a><span class="br0">&#40;</span><span class="nu0">2</span><span class="sy0">*</span><a href="http://www.scilab.org/product/dic-mat-sci/M2SCI_doc.htm"><span class="kw3">log</span></a><span class="br0">&#40;</span>n<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div></li>
<li class="li1"><div class="de1"><a href="http://www.<a href="http://www.scilab.org/product/dic-mat-sci/M2SCI_doc.htm"><span class="kw3">scilab</span></a>.org<span class="sy0">/</span>product<span class="sy0">/</span>dic<span class="sy0">-</span>mat<span class="sy0">-</span>sci<span class="sy0">/</span>M2SCI_doc.htm"><span class="kw1">end</span></a></div></li>
</ol><div class="foot">Parsed in 0.009 seconds at 10.09 KB/s</div></div><h4>Statistics</h4>
@BenBE BenBE closed this as completed in 9236d6a Oct 20, 2019
@BenBE
Copy link
Contributor

BenBE commented Oct 20, 2019

Cause for this issue was the keyword SciLab in Keyword Group 3 which also matched within links. Removed from kw3.

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

No branches or pull requests

2 participants