Hi,

I'm trying to write some tutorials about KDE. I chose Sphinx, and 
everything is going well so far. But now I need a little help about 
highlighting external files. I can use literalinclude with c++ source 
files without any problems, codes highlighted nicely. But when I tried 
import CMake files with literalinclude I get only plain text.

My rst file:

C++'ta Nasıl Merhaba Denir
--------------------------

Bu belgede C++'ta nasıl etkili bir şekilde merhaba denileceği 
anlatılmaktadır. Aşağıda örnek kod görünmektedir:

.. literalinclude:: ../../kod/main.cpp
   :language: cpp
   :linenos:

Görmüş olduğunuz gibi C++'ta en etkin biçimde merhaba denmiştir.

.. code-block:: cmake
   :linenos:

   project (tutorial1)
   find_package(KDE4 REQUIRED)
   include (KDE4Defaults)

.. literalinclude:: CMakeLists.txt
   :language: cmake
   :linenos:

Son sözleri yazalım buraya da.


Screenshot of output html file:

http://i.imgur.com/9YAOk4j.png

As you can see from screenshot, the cmake code highlighted in code block. 
Do you have any idea why I can not get highlighted CMake code with 
literalinclude? Isn't this supported or am I doing something wrong? I'm 
using Sphinx 1.1.3 on Fedora 18 64bit.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to