Style Guide
Fonts and headings
Font and heading guidelines, general
Standard | Use Case / Instructions for use | Example |
---|---|---|
"Normal" font: size 16 Arial |
Default font for all articles. Editor tool: Make sure the style picker at the editor bar is set to "None" |
See any text in this row of table |
Main heading: Heading 3 (H3) Sub heading: Heading 4 (H4) Sub heading, if needed: Heading 5 (H5) |
For adding additional major headings to articles. Do not alter heading formatting Use standard headings H3, H4 and H5. The Table of Content is built from these. |
Heading 3 (H3)Heading 4 (H4)Heading 5 (H5) |
Red text: size 16 Tahoma, red; hex # 636363. |
Highlighting and drawing attention to text Editor tool: Use "More Colors..." to apply color by its code |
NOTE: Do not run command as root. This can impact permissions and script may not run. |
Text representing code
Editor tool: Format > Code
Use case: To input code within a large context of non-code elements. Code is not to be used for block quotes.
Example: This is code example
which is in a line of "normal" text.
Colored title text
Editor tool: Format > Size and Text color
Use case: For titles where there are MindTouch out of the box titles with that color. for example: https://knowledge.exlibrisgroup.com/SFX/Knowledge_Articles
Example: Colored title for pages with MT templates: #DD7E22, size 20, Bold.
Code
Editor tool: Choose Style > <pre> > "none" at the Syntax highlighter.
Use case: To include linking syntax with placeholders, and other codes part that might be problematic to include in normal text. see example
<pre> without syntax (generic)
-
This is an example of "<pre>format" text, without a syntax highlighter.
XML
<pre> > "xml"
<?xml version="1.0" encoding="UTF-8"?> <Agenda type="gardening"> <Activity type="Watering"> <golf-course time="6:00"/> <yard time="7:00"/> </Activity> <Activity type="cooking"> <lunch time="12:00"/> </Activity> </Agenda>
HTML
<pre> > "html"
<p><span style="font-size:10px;">Small font</span> <span style="font-size:18px;">Large font</span> <span style="font-size:12px;color:orange;">Colored font</span> <span style="font-size:12px;font-weight:bold;">Bold font</span> <span style="font-size:12px;font-style:italic;">Italic font</span> and more...</p>
Java
<pre> > "java"
/* HelloWorld.java */ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
SQL
<pre> > "sql"
SELECT * FROM table ORDER BY RAND() LIMIT 10000 This is an example of SQL using the <pre>format option: DELETE bananas WHERE apples=red;
Lists and Bullets
Numbered list
Editor tool:
Use case: How-to instructions should utilize a numbered list.
Example:
- This is a default numbered list.
- It can contain sub-elements -
- by using tab.
- by right click, you can force the list to start with different number.
Bullets
Use case: A list of characteristics or elements (as opposed to a set of instructions)
Example:
- This is a default bulleted list.
- It can contain sub-bullets
- Use tab to move a bullet under another bullet
- Right-click to format bullets
Tables
Editor tool:
Right-click to apply column headings. Set to "Responsive"
Use case: Any set of data that's best represented in a table.
Example:
a | b | |
---|---|---|
c | ac | bc |
d | ad | bd |
Table of Contents
Automatic generation on the page is disabled for Knowledge Articles. Articles are not long enough to require these generally.
Exception: For unusually long articles that require a great deal of scrolling and include Headings, you may add an automatically generated ToC using Dekiscript. The ToC will be generated and display hierarchically by the Heading format used - that is, Heading 4 will appear under Heading 3, and Heading 5 will appear under Heading 4, etc.
- Open article for editing.
- Place cursor at top of article body (beneath horizontal line that separates Product, Product Version, etc.
- Style > dekiscript
- In dekiscript box, add: page.toc
Example: See top of this page
Images
Editor tool:
- Insert an image within a MindTouch page.
- Images can also be dragged and dropped into a page, or cut and pasted.
- After adding to page, right-click and set to "responsive"
- Supported image types:
- jpg/jpeg
- gif
- png
Use case: Illustrate a step or action
Example: