PrevUpHome

Quickbook Customized Colors


Jump in this page:
Start
Customized color table
Quickbook Example
About Quickbook

Back: Some Utils

Customized color table

p* -> d* -> dd* -> ddd* -> dddd*

p: pure;

d: dark;

More d, more dark;

For example: ddred

The color names with no prefix d and no prefix p are preserved and not changed, those colors are provided by official boost quickbook. Such as red, provided by official boost quickbook.

code:

[role red Hello c++ !] - red by boost quickbook
[role dred Hello c++ !] - dred by this util

output:

Hello c++ ! - red by boost quickbook
Hello c++ ! - dred by this util

The Color Table

red :
pred dred ddred dddred ddddred

green :
pgreen dgreen ddgreen dddgreen ddddgree

blue :
pblue dblue ddblue dddblue ddddblue

yellow (anti-blue) :
pyellow dyellow ddyellow dddyellow ddddyellow

cyan (anti-red) :
pcyan dcyan ddcyan dddcyan ddddcyan

magenta (anti-green) :
pmagenta dmagenta ddmagenta dddmagenta ddddmagenta

redpurple1 redpurple2
greenpurple1 greenpurple2
bluepurple1 bluepurple2

Quickbook Example

Quickbook .qbk code:

[pre
[role dddgreen c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]

[role dddred c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]

[role dddblue c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]

[role dddyellow c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]

[role dddcyan c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]

[role dddmagenta c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !]
]

Output:

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

c++ is the most awesome programming language in the world !
Boot library is the most helpful and awesome c++ library !
Object-oriented programming is the most interesting programming of all programmings !

About Quickbook

Quickbook belongs to the boost c++ project.

quickbook Home:
https://www.boost.org/tools/quickbook

The customized qbk media can be got from github:
https://github.com/cppfx/fx-quickbook-media

Date

Date: 2024

Update: Sun Sep 6 09:58:50 AM UTC 2026

Back

Back: Some Utils

Helpful

Spaceship 50 Years Alienated

Role

+

Powered by:
B2 Build | boost quickbook

+

Donate

+

@cppfx.xyz


















PrevUpHome