4. Inline Text Formatting - OpenAnime/ESL GitHub Wiki

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>, where WEIGHT is typically an Integer from 100 to 900).
    • Example: <b300>Light text</b300>
  • <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>."
}
⚠️ **GitHub.com Fallback** ⚠️