diff --git a/Forms/Components/ComponentRichTextBox.cs b/Forms/Components/ComponentRichTextBox.cs index 70bf04d..fca2c31 100644 --- a/Forms/Components/ComponentRichTextBox.cs +++ b/Forms/Components/ComponentRichTextBox.cs @@ -543,8 +543,9 @@ private void ParseRegExpHighlight(HighlightRegExp.Highlight Highlight) m_oRichTextBuffer.SelectionBackColor = Highlight.BgColor; } } + if (Conversions.ToBoolean(Highlight.SoundFile.Length > 0 && m_oParentForm.Globals.Config.bPlaySounds)) + Sound.PlayWaveFile(Highlight.SoundFile); } - } private void ParseVolatileHighlights(List highlightList)