Next: Miscellaneous, Previous: Quick Start, Up: Top [Contents][Index]
Just when you thought format strings were unreadable, it’s going to get a whole lot crazier. With FoCus, you can not only create your own cryptic format directives, but you can also completely mess up the standard ones, which is where the fun really begins.
First of all, FoCus itself resides in a package called net.didierverna.focus. You can automatically nickname this package with the following function.
Add NICKNAME (:focus
by default) to the
:net.didierverna.focus
package.
Using FoCus involves three steps: creating format tables, filling
them with format directives and actually using them in calls to format
or formatter
.
• Creating Format Tables: | Where your custom directives are stored | |
• Referring to Format Tables: | Interlude: format table designators | |
• Modifying Format Tables: | Adding, changing or removing directives | |
• Using Format Tables: | Actually formatting things | |
• Compile or Run Time: | When FoCus acts |