We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6817c8 commit f82fbdcCopy full SHA for f82fbdc
lib/iex/lib/iex/ansi_docs.ex
@@ -3,10 +3,18 @@ defmodule IEx.ANSIDocs do
3
4
@bullets [?*, ?-, ?+]
5
6
+ @default_colors [ enabled: true,
7
+ doc_code: "cyan,bright",
8
+ doc_inline_code: "cyan",
9
+ doc_headings: "yellow,bright",
10
+ doc_title: "reverse,yellow,bright",
11
+ doc_bold: "bright",
12
+ doc_underline: "underline" ]
13
+
14
@doc """
15
Prints the head of the documentation (i.e. the function signature)
16
"""
- def print_heading(string, use_ansi // IO.ANSI.terminal?, colors // []) do
17
+ def print_heading(string, use_ansi // IO.ANSI.terminal?, colors // @default_colors) do
18
if use_ansi do
19
write_doc_heading(string, colors)
20
else
@@ -26,7 +34,7 @@ defmodule IEx.ANSIDocs do
26
34
27
35
Prints the documentation body.
28
36
29
- def print(doc, use_ansi // IO.ANSI.terminal?, colors // []) do
37
+ def print(doc, use_ansi // IO.ANSI.terminal?, colors // @default_colors) do
30
38
31
39
doc
32
40
|> String.split(["\r\n","\n"], trim: false)
0 commit comments