The next few sections describe how to use the JCString resources. More advanced JCString users should refer to the grammar.
This text is [UL]underlined[/UL], and this is [ST]crossed out[/ST]
[COLOR=red]Red, [COLOR=green]Green, [COLOR=blue]Blue, [DEFAULT_COLOR]Default
[FONT=timesroman-plain-20]TimesRoman-20, [FONT=timesroman-bold-12]TimesRoman-12 bold, [DEFAULT_FONT]Default
The example below makes use of the HORIZ_SPACE and VERT_SPACE. tags.
[VERT_SPACE=10]Vertical offset=10 [HORIZ_SPACE=30][ALIGN=BOTTOM]bottom [ALIGN=TOP]top[ALIGN=MIDDLE]middle \n[VERT_SPACE]Down 20 pixels
[COLOR=green][FONT=timesroman-plain-20]Big text\n[RESET]Regular Text
The example below mixes an image with text.
Tech Support: [IMAGE=technical.gif]
[ALIGN=TOP]top[ALIGN=MIDDLE]middle[ALIGN=bottom]bottom [IMAGE=technical.gif]
Click [HREF=http://www.klg.com]here[/HREF] for tech support\n [HREF=http://www.klg.com][IMAGE=technical.gif][HREF]
JCString := atom | atom atom atom := attr | literal literal := string attr := startattr attribute endattr startattr := "<" endattr := ">" attribute := resource | end_resource | unary end_resource := end_underline | end_strike | end_reference end_underline := "/UNDERLINE" | "/UL" end_strike := "/STRIKETHROUGH" | "/ST" end_reference := "/HREF" unary := setfontdefault | setcolordefault | reset | newline setfontdefault := "DEFAULT_FONT" setcolordefault := "DEFAULT_COLOR" reset := "RESET" newline := "NEWLINE" resource := u_resource | b_resource u_resource := start_underline | start_strike | start_reference start_underline := "UNDERLINE" | "UL" start_strike := "STRIKETHROUGH" | "ST" start_reference := "HREF" "=" reference_value | "HREF" "=" reference_value "TARGET" "=" target_value reference_value := url target_value := "_self" | "_parent" | "_top" | "_blank" | windowname windowname := string b_resource := reference | alignment | horizspace | vertspace | color | image | font | alignment := "ALIGN" "=" alignment_value alignment_value := "TOP" | "MIDDLE" | "BOTTOM" horizspace := "HORIZ_SPACE" "=" integer vertspace := "VERT_SPACE" "=" integer color := "COLOR" "=" color_value color_value := color_string | "DEFAULT" image := "IMAGE" "=" image_value image_value := url | file font := "FONT" "=" font_value font_value := font_string | "DEFAULT"