<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://planet.ubuntu-fr.org/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Planet Ubuntu Francophone - export html</title>
  <link>http://planet.ubuntu-fr.org/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Fri, 05 Dec 2008 05:26:50 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Exporter un fichier source au format html / latex...</title>
    <link>http://planet.ubuntu-fr.org/post/2007/11/24/Exporter-un-fichier-source-au-format-html-/-latex</link>
    <guid isPermaLink="false">urn:md5:11cd8b425633d978319800626f39491e</guid>
    <pubDate>Sat, 24 Nov 2007 19:07:00 +0100</pubDate>
    <dc:creator>Administrateur</dc:creator>
        <category>Planet</category>
        <category>Accueil</category><category>coloration syntaxique</category><category>conversion</category><category>export</category><category>export html</category><category>export latex</category><category>ligne de commande</category><category>linux</category><category>source-highlight</category><category>ubuntu</category>    
    <description>    &lt;p&gt;Depuis quelques temps je recherchais le bon logiciel me permettant
d'exporter mes fichiers sources (c, c++, php, css) aux formats xhtml conservant
la coloration syntaxique et permettant ainsi l'impression en couleur.&lt;/p&gt;    &lt;h2&gt;une simple ligne de commande suffit&lt;/h2&gt;
&lt;p&gt;On m'avais proposé quanta+, mais bon pour simplement imprimer en couleur le
code, ca me semblait exagéré. D'autres logiciels existent peut être mais voici
ma solution  : &lt;a hreflang=&quot;en&quot; href=&quot;http://www.gnu.org/software/src-highlite/source-highlight.html&quot;&gt;Source-highlight&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Installer Source-highlight&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;sudo apt-get install source-highlight&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;Utilisation&lt;/h2&gt;
&lt;p&gt;&lt;code&gt; source-highlight -s c -i main.c -o gltools.html -f
xhtml&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;La ligne de commande précédente permet de convertir un fichier appartenant
au langage C dans un format xhtml&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;-s défini le format d'entrée&lt;/li&gt;
&lt;li&gt;-i     //   le nom de fichier d'entrée&lt;/li&gt;
&lt;li&gt;-o    //   le nom de fichier de sortie&lt;/li&gt;
&lt;li&gt;-f    //    le format de sortie&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Gestion des formats&lt;/h2&gt;
&lt;h3&gt;Formats d'entrées (47)&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;C = cpp.lang&lt;/li&gt;
&lt;li&gt;H = cpp.lang&lt;/li&gt;
&lt;li&gt;bison = bison.lang&lt;/li&gt;
&lt;li&gt;c = cpp.lang&lt;/li&gt;
&lt;li&gt;caml = caml.lang&lt;/li&gt;
&lt;li&gt;cc = cpp.lang&lt;/li&gt;
&lt;li&gt;changelog = changelog.lang&lt;/li&gt;
&lt;li&gt;cpp = cpp.lang&lt;/li&gt;
&lt;li&gt;cs = csharp.lang&lt;/li&gt;
&lt;li&gt;csharp = csharp.lang&lt;/li&gt;
&lt;li&gt;diff = diff.lang&lt;/li&gt;
&lt;li&gt;eps = postscript.lang&lt;/li&gt;
&lt;li&gt;flex = flex.lang&lt;/li&gt;
&lt;li&gt;fortran = fortran.lang&lt;/li&gt;
&lt;li&gt;h = cpp.lang&lt;/li&gt;
&lt;li&gt;hh = cpp.lang&lt;/li&gt;
&lt;li&gt;hpp = cpp.lang&lt;/li&gt;
&lt;li&gt;htm = html.lang&lt;/li&gt;
&lt;li&gt;html = html.lang&lt;/li&gt;
&lt;li&gt;java = java.lang&lt;/li&gt;
&lt;li&gt;javascript = javascript.lang&lt;/li&gt;
&lt;li&gt;js = javascript.lang&lt;/li&gt;
&lt;li&gt;l = flex.lang&lt;/li&gt;
&lt;li&gt;lang = langdef.lang&lt;/li&gt;
&lt;li&gt;langdef = langdef.lang&lt;/li&gt;
&lt;li&gt;latex = latex.lang&lt;/li&gt;
&lt;li&gt;lex = flex.lang&lt;/li&gt;
&lt;li&gt;lgt = logtalk.lang&lt;/li&gt;
&lt;li&gt;ll = flex.lang&lt;/li&gt;
&lt;li&gt;log = syslog.lang&lt;/li&gt;
&lt;li&gt;logtalk = logtalk.lang&lt;/li&gt;
&lt;li&gt;lua = lua.lang&lt;/li&gt;
&lt;li&gt;ml = caml.lang&lt;/li&gt;
&lt;li&gt;mli = caml.lang&lt;/li&gt;
&lt;li&gt;outlang = outlang.lang&lt;/li&gt;
&lt;li&gt;pas = pascal.lang&lt;/li&gt;
&lt;li&gt;pascal = pascal.lang&lt;/li&gt;
&lt;li&gt;patch = diff.lang&lt;/li&gt;
&lt;li&gt;perl = perl.lang&lt;/li&gt;
&lt;li&gt;php = php3.lang&lt;/li&gt;
&lt;li&gt;php3 = php3.lang&lt;/li&gt;
&lt;li&gt;pl = prolog.lang&lt;/li&gt;
&lt;li&gt;pm = perl.lang&lt;/li&gt;
&lt;li&gt;postscript = postscript.lang&lt;/li&gt;
&lt;li&gt;prolog = prolog.lang&lt;/li&gt;
&lt;li&gt;ps = postscript.lang&lt;/li&gt;
&lt;li&gt;py = python.lang&lt;/li&gt;
&lt;li&gt;python = python.lang&lt;/li&gt;
&lt;li&gt;rb = ruby.lang&lt;/li&gt;
&lt;li&gt;ruby = ruby.lang&lt;/li&gt;
&lt;li&gt;sh = sh.lang&lt;/li&gt;
&lt;li&gt;shell = sh.lang&lt;/li&gt;
&lt;li&gt;sig = sml.lang&lt;/li&gt;
&lt;li&gt;sml = sml.lang&lt;/li&gt;
&lt;li&gt;style = style.lang&lt;/li&gt;
&lt;li&gt;syslog = syslog.lang&lt;/li&gt;
&lt;li&gt;tex = latex.lang&lt;/li&gt;
&lt;li&gt;xhtml = xml.lang&lt;/li&gt;
&lt;li&gt;xml = xml.lang&lt;/li&gt;
&lt;li&gt;y = bison.lang&lt;/li&gt;
&lt;li&gt;yacc = bison.lang&lt;/li&gt;
&lt;li&gt;yy = bison.lang&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Formats de sorties&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;docbook = docbook.outlang&lt;/li&gt;
&lt;li&gt;esc = esc.outlang&lt;/li&gt;
&lt;li&gt;esc-doc = esc.outlang&lt;/li&gt;
&lt;li&gt;html = html.outlang&lt;/li&gt;
&lt;li&gt;html-css = css_common.outlang&lt;/li&gt;
&lt;li&gt;html-css-doc = cssdoc.outlang&lt;/li&gt;
&lt;li&gt;html-doc = htmldoc.outlang&lt;/li&gt;
&lt;li&gt;javadoc = javadoc.outlang&lt;/li&gt;
&lt;li&gt;latex = latex.outlang&lt;/li&gt;
&lt;li&gt;latex-doc = latexdoc.outlang&lt;/li&gt;
&lt;li&gt;latexcolor = latexcolor.outlang&lt;/li&gt;
&lt;li&gt;latexcolor-doc = latexcolordoc.outlang&lt;/li&gt;
&lt;li&gt;texinfo = texinfo.outlang&lt;/li&gt;
&lt;li&gt;xhtml = xhtml.outlang&lt;/li&gt;
&lt;li&gt;xhtml-css = xhtmlcss.outlang&lt;/li&gt;
&lt;li&gt;xhtml-css-doc = xhtmldoc.outlang&lt;/li&gt;
&lt;li&gt;xhtml-doc = xhtmldoc.outlang&lt;/li&gt;
&lt;/ol&gt;
&lt;br style=&quot;font-weight: bold;&quot; /&gt;
&lt;strong&gt;Note :&lt;/strong&gt; Il manque plus qu'un petit script nautilus permettant
de lancer la conversion xhtml selon le format d'entrée via le clic droit.&lt;br /&gt;</description>
    
    
    
      </item>
    
</channel>
</rss>
