Probably with a plugin...
But can dokuwiki make everyone feel warm and fuzzy inside like mediawiki can? The answer is no unfortunately. I'd rather have used dokuwiki for everything as well but more people are editing the wiki now than did before because more ppl are familiar with mediawiki. I'm not making stuff up just to make it appear better, just stating a fact.
Well, I took a look at the extension that Devnet pointed out above and, unfortunately, it did not have syntax highlighting rules for several important languages that we use, not the least of which is RPM spec format. So, since we were just missing a simple functionality of "Download Code" link near the block of code, I have modified our present extension to add optionally add this feature. The full syntax for the <code> tag is actually<code [options]>your code</code>
where options are:lang='s' This is the language type that explains how to highlight the code. Default is 'text'.
See GeSHi for full list of supported syntaxes
linenumbers Turn on line numbers for each line in your code
download Turn on the "Download Code" link for this block of your code
tabwidth='n' How many spaces does a TAB represent
fileurl='s' Instead of processing the code provided between the tags, process the code at specified URL
Please feel free to play with this. Also, ask questions about other missing features on our wiki!
paul.
> Well, I took a look at the extension that Devnet pointed out above
> and, unfortunately, it did not have syntax highlighting rules for
> several important languages that we use, not the least of which is
> RPM spec format.
I'm not sure if this was the extension that you're using or not. If
not, it's been on my todo list for some time now:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
When googling, I saw that it does support RPM:
http://www.google.ca/search?hl=en&q=geshi+RPM+Specification+File
.. however, I cannot find an RPM reference on the extension's home page
like Google says I should.
I'm personally migrating away from MediaWiki, and I'll probably end up
with something nice and simple like:
http://alexgorbatchev.com/SyntaxHighlighter/
On Thu, 29 Apr 2010 09:08:29 -0500
> Well, I took a look at the extension that Devnet pointed out aboveI'm not sure if this was the extension that you're using or not. If
> and, unfortunately, it did not have syntax highlighting rules for
> several important languages that we use, not the least of which is
> RPM spec format.
not, it's been on my todo list for some time now:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
When googling, I saw that it does support RPM:
http://www.google.ca/search?hl=en&q=geshi+RPM+Specification+File
.. however, I cannot find an RPM reference on the extension's home page
like Google says I should.
I'm personally migrating away from MediaWiki, and I'll probably end up
with something nice and simple like:
http://alexgorbatchev.com/SyntaxHighlighter/
wow, way to resurect a thread!On Mon, Aug 23, 2010 at 4:20 PM, Paul Grinberg <gri...@gmail.com> wrote:
On Sun, Aug 22, 2010 at 12:32 PM, spiralofhope <spiral...@gmail.com> wrote:On Thu, 29 Apr 2010 09:08:29 -0500
> Well, I took a look at the extension that Devnet pointed out aboveI'm not sure if this was the extension that you're using or not. If
> and, unfortunately, it did not have syntax highlighting rules for
> several important languages that we use, not the least of which is
> RPM spec format.
not, it's been on my todo list for some time now:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Nope - that extension didn't have the features that I felt that we needed. It just so happens that in the past, I had written a different extension using GeSHi, so we are using that one. You can always check the details of the installed extensions on http://docs.unity-linux.org/Special:Version
When googling, I saw that it does support RPM:
http://www.google.ca/search?hl=en&q=geshi+RPM+Specification+File
.. however, I cannot find an RPM reference on the extension's home page
like Google says I should.
Support of RPM Spec file format was something that I had asked from GeSHi developers a long time ago. They never responded. Since I didn't find any other syntax highlighter that handled this format and still integrated nicely into a wiki, I simply wrote the syntax file for this format and submitted it to GeSHi developers. I have no idea whether or not they plan to incorporate it into a release in the future.