3

In html, one can <div class, id> and CSS styling with selection based on "class" or "id". Is it possible to do it similarly in ConTeXt?

For example, using "define" then "setup", then "start/stop"? From the document, I can see that one can define/customize "head". How about an arbitrary piece of text?

2
  • It’s not exactly classes or id”s, but \definehighlight may be what you’re looking for. Commented Nov 22, 2013 at 20:58
  • \definehighlight and \definestartstop. Also look at Wolfgang Schuster's annotation module.
    – Aditya
    Commented Nov 22, 2013 at 23:04

1 Answer 1

3

\definestartstop is what you're looking for.

\definestartstop
  [cssselectorexample]
  [style=italic]

\starttext

Hello
\startcssselectorexample
  Foo Bar Baz
\stopcssselectorexample
World

\stoptext
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .