1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Console; |
4: | |
5: | /** |
6: | * Console output formatting tags |
7: | */ |
8: | interface ConsoleTag |
9: | { |
10: | /** |
11: | * Heading |
12: | * |
13: | * - `___` text `___` |
14: | * - `***` text `***` |
15: | * - `##` text `##` (closing delimiter is optional) |
16: | */ |
17: | public const HEADING = 0; |
18: | |
19: | /** |
20: | * "Bold", or strong importance |
21: | * |
22: | * - `__` text `__` |
23: | * - `**` text `**` |
24: | */ |
25: | public const BOLD = 1; |
26: | |
27: | /** |
28: | * "Italic", or emphasis |
29: | * |
30: | * - `_` text `_` |
31: | * - `*` text `*` |
32: | */ |
33: | public const ITALIC = 2; |
34: | |
35: | /** |
36: | * "Underline", or emphasis |
37: | * |
38: | * `<` text `>` |
39: | */ |
40: | public const UNDERLINE = 3; |
41: | |
42: | /** |
43: | * Low priority |
44: | * |
45: | * `~~` text `~~` |
46: | */ |
47: | public const LOW_PRIORITY = 4; |
48: | |
49: | /** |
50: | * Inline code span |
51: | * |
52: | * `` ` `` text `` ` `` |
53: | */ |
54: | public const CODE_SPAN = 5; |
55: | |
56: | /** |
57: | * Fenced code block |
58: | * |
59: | * ` ``` `<br> |
60: | * text<br> |
61: | * ` ``` ` |
62: | */ |
63: | public const CODE_BLOCK = 6; |
64: | |
65: | /** |
66: | * A unified diff header |
67: | */ |
68: | public const DIFF_HEADER = 7; |
69: | |
70: | /** |
71: | * Line numbers in a unified diff |
72: | */ |
73: | public const DIFF_RANGE = 8; |
74: | |
75: | /** |
76: | * An additional line in unified diff output |
77: | */ |
78: | public const DIFF_ADDITION = 9; |
79: | |
80: | /** |
81: | * A removed line in unified diff output |
82: | */ |
83: | public const DIFF_REMOVAL = 10; |
84: | } |
85: |