diff --git a/mkdoxy/templates/example.jinja2 b/mkdoxy/templates/example.jinja2 index cd0c8d2f..2549f972 100644 --- a/mkdoxy/templates/example.jinja2 +++ b/mkdoxy/templates/example.jinja2 @@ -1,9 +1,8 @@ {% filter indent(config.get('indent_level', 0), True) %} # {{node.title}} -{{node.details}} +{{node.details | use_code_language(node.code_language)}} + +{{node.programlisting | use_code_language(node.code_language)}} -```{{ node.code_language }} -{{node.programlisting}} -``` {% endfilter %} diff --git a/mkdoxy/templates/memDef.jinja2 b/mkdoxy/templates/memDef.jinja2 index b17a3417..0746dace 100644 --- a/mkdoxy/templates/memDef.jinja2 +++ b/mkdoxy/templates/memDef.jinja2 @@ -16,14 +16,12 @@ url_source: True {%- endif -%} {%- endif -%} -```{{node.code_language}} -{{node.codeblock}} -``` +{{node.codeblock | use_code_language(node.code_language)}} {% if configMemDef.get('details') -%} {% if node.has_details -%} -{{node.details}} +{{node.details | use_code_language(node.code_language)}} {%- endif -%} {%- endif -%} diff --git a/mkdoxy/templates/member.jinja2 b/mkdoxy/templates/member.jinja2 index 1e939b4c..39304e33 100644 --- a/mkdoxy/templates/member.jinja2 +++ b/mkdoxy/templates/member.jinja2 @@ -70,7 +70,7 @@ Inherited by the following classes: {%- if node.has_details %} # Detailed Description -{{node.details}} +{{node.details | use_code_language(node.code_language)}} {%- endif %} {%- for visibility in ['public', 'protected'] -%} diff --git a/mkdoxy/templates/page.jinja2 b/mkdoxy/templates/page.jinja2 index 7a7c1948..b88a12e0 100644 --- a/mkdoxy/templates/page.jinja2 +++ b/mkdoxy/templates/page.jinja2 @@ -3,7 +3,7 @@ {% if node.title %}{{node.title}}{% else %}# Related Pages{% endif %} {% if node.details %} -{{node.details}} +{{node.details | use_code_language(node.code_language)}} {% else %} No related pages found. {% endif %} diff --git a/mkdoxy/templates/programlisting.jinja2 b/mkdoxy/templates/programlisting.jinja2 index 86941c35..a288e77f 100644 --- a/mkdoxy/templates/programlisting.jinja2 +++ b/mkdoxy/templates/programlisting.jinja2 @@ -13,8 +13,6 @@ breadcrumbs: False [Go to the documentation of this file]({{node.url}}) -```{{ node.code_language }} -{{node.programlisting}} -``` +{{node.programlisting | use_code_language(node.code_language)}} {% endfilter %}