GeSHi / geshi-1.0

Original version of Generic Syntax Highlighter for PHP
http://qbnz.com/highlighter/
GNU General Public License v2.0
168 stars 101 forks source link

methods in R S+ code (rsplus) result in funny HTML-related additions instead of producing a hyperlink #36

Closed molecules closed 5 years ago

molecules commented 9 years ago

Thank you so much for your work on GeSHi!

I just came across a bug. I tried this at http://qbnz.com/highlighter/demo.php, and it worked the same way it does in DokuWiki (where I originally noticed it):

In R S+ code, anything using a method results in funny text that looks like the end of a URL (which seems to be related to creating a link to the documentation):

seed <- new ()

results in

seed <- methods/html/new.html">new()

Klap-in commented 9 years ago

Trying with Scilab code shows an similar issue:

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
BenBE commented 6 years ago

@Klap-in Please open a separate issue for Scilab so it can be tracked independently. Please also include your code snippet in that issue. TIA.