Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 309

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sourcehighlight (third party plugin)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="stylesheet" href="../../style.css" type="text/css" />

<link rel="stylesheet" href="../../local.css" type="text/css" />










</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="../../index.html">ikiwiki</a>/ 

<a href="../../plugins.html">plugins</a>/ 

<a href="../contrib.html">contrib</a>/ 

</span>
<span class="title">
sourcehighlight (third party plugin)

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p><span class="infobox">
Plugin: sourcehighlight<br />
Author: <span class="createlink">DavidBremner</span><br />
Included in ikiwiki: no<br />
Enabled by default: no<br />
Included in <a href="../goodstuff.html">goodstuff</a>: no<br />
Currently enabled: no<br />
</span></p>

<p>I noticed several places in the wiki talking about similar ideas, so I decided to put a page here to point to what I am working on.</p>

<p>I have implemented a simple wrapper around
 <a href="http://www.gnu.org/software/src-highlite/">source-highlight</a>.  You can find the latest version in 
<a href="http://pivot.cs.unb.ca/git?p=ikiplugins.git;a=blob_plain;f=IkiWiki/Plugin/sourcehighlight.pm;hb=HEAD">git</a>.
You must specify <code>highlight_lang=&gt;"foo,bar"</code> in your setup file.
where foo and bar are the (source-supported) languages you want to
highlight</p>

<h3>Issues</h3>

<ul>
<li>I would like to have a link to the raw source; using will_render() and then copying the file should work.</li>
</ul>

<blockquote>
  <p>You might also like to look at the <span class="createlink">source link</span> todo. -- <span class="createlink">Will</span></p>
</blockquote>

<ul>
<li>Is there a way to configure the colors used by source-highlight (other than editing the globally installed "default.style" file)? It would help if I could pass the command arbitrary command-line arguments; then I could configure which config file it's supposed to use. For instance, I'm not a fan of hard-coding the colors into the HTML output. IMHO, css-style formatting should be preferred. All that can be set via the command line ... --Peter</li>
</ul>

<blockquote>
  <p>I don't really have time right now, but it should be easy to add, if you look at how src-lang is handled.  Patches are welcome <img src="../../smileys/smile.png" alt=":-)" /> --<span class="createlink">DavidBremner</span></p>
</blockquote>

<p>Note that <span class="createlink">Will</span> wrote a plugin that uses source-highlight also. It's
available
<span class="createlink">here</span>.
--<span class="createlink">Joey</span></p>

<p>To be honest, <span class="createlink">Will</span>'s version of this looks more polished.  I will try his 
plugin and see if it can just replace mine. --<span class="createlink">DavidBremner</span></p>

<p><em>Updated</em> Now uses keepextension so multiple extensions should be OK</p>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">











<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Tue Feb 26 23:01:54 2019</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>