Misc.Style(3) OCaml library Misc.Style(3)

# [NAME](#NAME)

Misc.Style - no description

# [Module](#Module)

Module Misc.Style

# [Documentation](#Documentation)

Module **Style**  
: **sig end**

*type color* =  
| Black  
| Red  
| Green  
| Yellow  
| Blue  
| Magenta  
| Cyan  
| White

*type style* =  
| FG **of** **color**  
| BG **of** **color**  
| Bold  
| Reset

*type Format.stag* +=  
| Style **of** **style list**

*val ansi\_of\_style\_l* : **style list -&gt; string**

*type tag\_style* = {  
ansi : **style list** ;  
text\_open : **string** ;  
text\_close : **string** ;  
}

*type styles* = {  
error : **tag\_style** ;  
warning : **tag\_style** ;  
loc : **tag\_style** ;  
hint : **tag\_style** ;  
inline\_code : **tag\_style** ;  
}

*val hint* : **Format\_doc.formatter -&gt; unit**

*val as\_inline\_code* : **'a Format\_doc.printer -&gt; 'a Format\_doc.printer**

*val inline\_code* : **string Format\_doc.printer**

*val default\_styles* : **styles**

*val get\_styles* : **unit -&gt; styles**

*val set\_styles* : **styles -&gt; unit**

*val setup* : **Misc.Color.setting option -&gt; unit**

*val set\_tag\_handling* : **Format.formatter -&gt; unit**

2026-10-23 OCamldoc

---

Document: Misc.Style(3o) from ocaml 5.5.2-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
