From 0132551f229675e9e4c89b27c6442800fdf6ebe5 Mon Sep 17 00:00:00 2001
From: Artsiom Trubchyk <aglitchman@gmail.com>
Date: Thu, 31 Oct 2024 23:39:45 +0300
Subject: [PATCH] Update example page syntax highlighting

---
 _layouts/example.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/_layouts/example.html b/_layouts/example.html
index 918da8963..eadb42467 100644
--- a/_layouts/example.html
+++ b/_layouts/example.html
@@ -62,7 +62,12 @@ <h4>Scripts</h4>
 					replace each tab with 4 spaces to have consistent indentations
 				{% endcomment %}
 				{% capture script_content %}{% include examples/{{ collection }}/{{ script | lstrip | replace: ".script", "_script.md" | replace: ".gui_script", "_gui_script.md" | replace: ".vp", "_vp.md" | replace: ".fp", "_fp.md" }} %}{% endcapture %}
+				{% assign script_ext = script | split:'.' | last %}
+				{% if script_ext == "vp" or script_ext == "fp" %}
+				{% highlight glsl %}{{ script_content | replace: "	", "    " }}{% endhighlight %}
+				{% else %}
 				{% highlight lua %}{{ script_content | replace: "	", "    " }}{% endhighlight %}
+				{% endif %}
 				{% endfor %}
 			</div>
 			<div class="columns two">