Community
Participate
Working Groups
In F1 content documentation, need the ability to specify spaces (ie ). Explore options to add tabs (translates to 4 spaces perhaps?)
Could you elaborate the scenarios under which this would be useful?
One scenarios is the need to specify xml fragment or java code that requires spaces for indentation formatting. A specific use case in OEPE is IWebLogicAppDescriptor.ClassLoaderStructure which contains some xml fragments.
In HTML, code formatting is accomplished via the combination of the pre tag and fixed-width font. Would a similar approach make sense here? I can see supporting [code][/code] tag. Is it possible to control font type in FormText?
Will investigate [code] tag. From docs, it appears FormText have font support.
Correction, FormText will support font..etc, but we are currently using the Eclipse documentation infrastructure which removes all html tag support except bold. How about we support a [code] tag which will preserve the spaces and line breaks.
> How about we support a [code] tag which will preserve the spaces and line > breaks. Sounds good.
Added [code] tag and an example in sapphire-gallery help.
The spaces are preserved but not the newlines. At least this isn't evident in the sample. Instead of using [br/] tag, content inside [code] tag should be able to use regular newlines and have them be translated into line breaks. @Documentation( content = "Content help containing code tag which preserves the spaces." + "[br/]" + "[code]" + "[br/]<actions>" + "[br/] <action-group>" + "[br/] <action>" + "[br/] <class>MyAction1</class>" + "[br/] </action>" + "[br/] <action>" + "[br/] <class>MyAction2</class>" + "[br/] </action>" + "[br/] </action-group>" + "[br/]</actions>" + "[/code]" )
Verify both \r\n and \n are preserved inside the [code] tag. Also updated the example to use \r\n instead of the [br] tag
Verified.