turnermm / codedoc

Dokuwiki plugin for documenting and displaying extended blocks of code
https://www.dokuwiki.org/plugin:codedoc
6 stars 1 forks source link

Geshi - SQL not properly recognized #3

Closed vic-t closed 8 years ago

vic-t commented 8 years ago

<codedoc code:sql> does not recognize sql comments (which are prefixed by two dashes, --)

turnermm commented 8 years ago

Please give an example

vic-t commented 8 years ago
<codedoc code:sql>
-- 
-- This is an SQL comment
--
ALTER TABLE "Person" RENAME TO People;
</codedoc>
turnermm commented 8 years ago
<codedoc code:sql>
~~codedoc:clean:--~~\\
~~codedoc:clean:--This is an SQL comment--~~\\
~~codedoc:clean:--~~

ALTER TABLE "Person" RENAME TO People;
</codedoc>

See: https://www.dokuwiki.org/doku.php?id=plugin:codedoc#literals

vic-t commented 8 years ago

I regularly copy paste large pieces of SQL code that include comments all over the place. So this workaround is just not at all practical. I appreciate you answered (in record time, by the way) but if that's the final solution, then (the Geshi version of) Codedoc just cannot be considered compatible with SQL.

turnermm commented 8 years ago

So be it.