Skip to content

Commit 5aaff18

Browse files
committed
Add StyledStrings, Faces, and @S_str to NEWS
1 parent 0569c57 commit 5aaff18

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ New language features
88
difference between `public` and `export` is that `public` names do not become
99
available when `using` a package/module. ([#50105])
1010
* `ScopedValue` implement dynamic scope with inheritance across tasks ([#50958]).
11+
* A new `AbstractString` type, `StyledString`, is introduced that allows for
12+
(arbitrary) regional annotations to be attached to an underlying string. This is
13+
very useful for allowing styling information to be encoded separately, and along
14+
with `Faces` provides a much more sophisticated approach for styling that
15+
`printstyled`. There is also a new `StyledChar` type, that is the equivalent
16+
new `AbstractChar` type.
17+
* The new `Faces` struct serves as a container for text styling information
18+
(think typeface), and comes with a framework to provide a convenient,
19+
extensible (via `addface!`), and customisable (see `loadfaces!`) approach to
20+
styled content.
21+
* The new `@S_str` string macro provides a convenient way of creating a
22+
`StyledString` with various faces or other attributes applied.
1123

1224
Language changes
1325
----------------

0 commit comments

Comments
 (0)