How do I make Geshi formatting easily copyable?

105 Views Asked by At

I have installed the Geshi extension to allow for syntax highlighting on my MediaWiki-powered website. I am trying to figure out how to make syntax highlighting easily copyable.

Currently, when I try to copy code formatting, the line numbers get copied alongside the code:

enter image description here

I have tried looking at Geshi options to no avail.

1

There are 1 best solutions below

0
cweiske On

The GeSHi documentation talks about that in http://qbnz.com/highlighter/geshi-doc.html#line-numbers

$geshi->set_header_type(GESHI_HEADER_PRE_TABLE);