/******************************************************************************/ /* */ /* StyleSheet.cls - (Very limited) stylesheet support */ /* ================================================== */ /* */ /* This program is part of the Rexx Parser package */ /* [See https://rexx.epbcn.com/rexx-parser/] */ /* */ /* Copyright (c) 2024-2025 Josep Maria Blasco */ /* */ /* License: Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) */ /* */ /* Abstract */ /* -------- */ /* */ /* HTML highlighting uses a set of CSS stylesheets, and we want to reuse */ /* these stylesheets with other highlighter drivers, like ANSI or LaTeX. */ /* To that purpose, we must be able to parse the CSS stylesheet and abstract */ /* its contents, so that the other drivers can use it. This package contains */ /* the necessary routines to implement this cross-driver support. */ /* */ /* Generally speaking, CSS parsing is a formidable task. We only support */ /* rigidly formatted stylesheets, that are enough to produce excellent */ /* HTML results and at the same time simple enough to be manually parser */ /* and used by the ANSI and LaTeX drivers. */ /* */ /* Where are stylesheets located */ /* ----------------------------- */ /* */ /* Stylesheets reside in the /css directory. Given a style name