From 2e7a92bc3750bf6d9a1d455ea565b2c97259950e Mon Sep 17 00:00:00 2001 From: limo520 Date: Mon, 3 Aug 2026 20:51:17 +0800 Subject: [PATCH] Fix incorrect feature name in the code editor demo (#8330) Change the feature name from syntax_highlighting to syntect. * [x] I have followed the instructions in the PR template Co-authored-by: Emil Ernerfeldt --- crates/egui_demo_lib/src/demo/code_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui_demo_lib/src/demo/code_editor.rs b/crates/egui_demo_lib/src/demo/code_editor.rs index 869194114..c79cdfd47 100644 --- a/crates/egui_demo_lib/src/demo/code_editor.rs +++ b/crates/egui_demo_lib/src/demo/code_editor.rs @@ -61,7 +61,7 @@ impl crate::View for CodeEditor { ui.horizontal_wrapped(|ui| { ui.spacing_mut().item_spacing.x = 0.0; ui.label("Compile the demo with the "); - ui.code("syntax_highlighting"); + ui.code("syntect"); ui.label(" feature to enable more accurate syntax highlighting using "); ui.hyperlink_to("syntect", "https://github.com/trishume/syntect"); ui.label(".");