This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/training.git


The following commit(s) were added to refs/heads/develop by this push:
     new 876247f  fix: Sorted out some issues with displaying code blocks 
(Thanks to Rich's PR)
876247f is described below

commit 876247fc33d1a7d8dec019e1473d2b57130b4c0a
Author: Christofer Dutz <[email protected]>
AuthorDate: Tue Aug 26 23:19:44 2025 +0200

    fix: Sorted out some issues with displaying code blocks (Thanks to Rich's 
PR)
---
 .../Presentations/src/main/asciidoc/index_en.adoc  | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git 
a/content/Apache/Training/Presentations/src/main/asciidoc/index_en.adoc 
b/content/Apache/Training/Presentations/src/main/asciidoc/index_en.adoc
index fae50e0..1b3c8d4 100644
--- a/content/Apache/Training/Presentations/src/main/asciidoc/index_en.adoc
+++ b/content/Apache/Training/Presentations/src/main/asciidoc/index_en.adoc
@@ -20,6 +20,9 @@
 // 45 minutes = 2700 seconds
 :revealjs_totalTime: 2700
 
+// Highlight code samples
+:source-highlighter: highlight.js
+
 == !
 :description: 45 minute talk on Apache Training
 :keywords: Apache Training
@@ -109,20 +112,20 @@ Fonts, stock images, slide templates, graphics
 * Profit!
 
 == Text
-[code]
+[source]
 ----
 Put your text here
 ----
 
 == Titles
 
-[code]
+[source]
 ----
 == !
 No title
 ----
 
-[code]
+[source]
 ----
 == Slide One
 
@@ -135,7 +138,7 @@ No title
 == Images
 [.columns]
 --
-[code]
+[source]
 ----
 image::cat.jpg[Cat, width=50%]
 ----
@@ -146,7 +149,7 @@ image::cat.jpg[Cat, width=200%]
 == Video
 [.columns]
 --
-[code]
+[source]
 ----
 video::sydney.mp4[width=640, start=30, end=60, options=autoplay]
 video::dQw4w9WgXcQ[youtube]
@@ -169,7 +172,7 @@ a remote video.
 
 == Background images
 
-[code]
+[source]
 ----
 image::stars.jpg[background, size=cover]
 ----
@@ -182,7 +185,7 @@ image::stars.jpg[background, size=cover]
 * Slide attribute, so different syntax
 * Place the following immediately before the slide header (ie, the `==` line)
 
-[code]
+[source]
 ----
 [background-video="sydney.mp4",background-video-loop=true]
 ----
@@ -190,14 +193,12 @@ image::stars.jpg[background, size=cover]
 [background-video="sydney.mp4",background-video-loop=true]
 == Background Video
 
-[code]
-----
-[background-video="sydney.mp4",background-video-loop=true]
+Some content
 
 == Bullet Lists
 [.columns]
 --
-[code]
+[source]
 ----
 * one
 * two
@@ -212,7 +213,7 @@ image::stars.jpg[background, size=cover]
 == Bullet Lists
 [.columns]
 --
-[code]
+[source]
 ----
 * one
 * two
@@ -227,8 +228,7 @@ image::stars.jpg[background, size=cover]
 --
 
 == Speaker Notes
-
-[code]
+[source]
 ----
 [.notes]
 --
@@ -246,7 +246,7 @@ image:speakernotes.jpg[]
 * ASCII to diagrams
 
 == Vertical Slides
-[code]
+[source]
 ----
 === Next Slide
 ----
@@ -255,7 +255,7 @@ image:speakernotes.jpg[]
 This is the next slide
 
 == Conditional slides
-[code]
+[source]
 ----
 :IANAL: I am not a lawyer
 
@@ -266,7 +266,7 @@ endif::[]
 ----
 
 == Generating content
-[code, python]
+[source, python]
 ----
 with 
urllib.request.urlopen("https://whimsy.apache.org/public/public_ldap_people.json";)
 as url:
     data = json.loads(url.read().decode())

Reply via email to