-
Notifications
You must be signed in to change notification settings - Fork 0
4. Inline Text Formatting
SpongeBed edited this page Jun 6, 2025
·
4 revisions
Allows basic styling changes within a String `cue.text` using HTML-like tags. Tags MUST be properly nested. Inline styles override corresponding properties from the cue's main style.
Supported Tags:
-
<br>: Line break. -
<b>text</b>: Bold text. -
<i>text</i>: Italic text. -
<u>text</u>: Underlined text. -
<s>text</s>: Strikethrough text. -
<bWEIGHT>text</bWEIGHT>: Sets a specific font weight (e.g.,<b700>text</b700>, whereWEIGHTis typically an Integer from100to900).- Example:
<b300>Light text</b300>
- Example:
-
<b>text</b>: Same as using<b700>text</b700> -
<style name="style-name">text</style>: Inline style modifications.
Example of cue with inline formatting:
style "red-color" {
color = "red"
}
cue {
in = 10000
out = 15000
text = "This is <b700><i>very <style name=\"red-color\">important</style></i></b700>."
}