aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--_includes/snippets/section.html2
-rw-r--r--_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md1
2 files changed, 2 insertions, 1 deletions
diff --git a/_includes/snippets/section.html b/_includes/snippets/section.html
index 79be3c1..cbb778f 100644
--- a/_includes/snippets/section.html
+++ b/_includes/snippets/section.html
@@ -8,7 +8,7 @@
{% include snippets/header.html snippet_path=i section_id=include.section_id %}
{% capture snippet %}
-```c++
+```{{ page.snippets_language }}
{% include_relative {{ page.snippets_root_directory }}/{{ i }} %}```
{% endcapture %}
diff --git a/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md b/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
index 94b5105..06e56e4 100644
--- a/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
+++ b/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
@@ -9,6 +9,7 @@ custom_css:
- snippets.css
- syntax.css
snippets_root_directory: snippets/static_vs_inline_vs_unnamed_namespaces/
+snippets_language: c++
snippets:
static:
- static/main.cpp