center
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | center [2006/07/25 21:22] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: center.txt, | ||
+ | ======Synopsis: | ||
+ | $__center__(< | ||
+ | |||
+ | ======Technical: | ||
+ | This function returns the input text right-justified in a buffer that is | ||
+ | precisely (** ((width - strlen(text)) / 2) + strlen(text)** ) characters | ||
+ | wide. The width must be given, there is no default. | ||
+ | |||
+ | ======Practical: | ||
+ | This function returns the given text, padded on the left such that it | ||
+ | will appear to be " | ||
+ | padded, only the left. To force padding on both sides, you must use the | ||
+ | width qualifier $[]var. | ||
+ | |||
+ | ======Returns: | ||
+ | Input text centered in given width. | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $center(15 hello there) | ||
+ | $[15]center(15 hello there) | ||
+ | </ | ||
center.txt · Last modified: 2006/07/25 21:22 by 127.0.0.1