# Using the text and formula editor

## How to format the text of your emails, questions, and answers.

You can use our in-built text editor to add flair to your communications and questions. You can use tokens to autofill the names of your candidates in an invitation email, or insert a code box into a more technical custom question. This guide explains how. This article is for TestGorilla users with the Owner, Admin or Recruiter roles.

### Using the text editor for emails

The text editor toolbar is at the top of the textbox, and can be used to style your text. Simply highlight the desired text and use the buttons to apply styling:

 Bold/Italic/Underline Applies this styling to your text. Insert a numbered or bulleted list. Position your text to the left, center, or right of the page. Choose between 2 font sizes for your text — small or large. Use tokens — Use autofill tokens for names. Hyperlink highlighted text. This could link to your company webpage. Remove the formatting of highlighted text.

#### Using tokens

Tokens allow you to automatically fill the:

• Assessment name - {assessment_name}
• Candidate’s name - {candidate_name}
• Customer name - {customer_name}
• Company name - {company_name}

Using tokens, our default template includes the names of both the candidate and the person inviting them, along with the name of the company.

To use tokens, you can either type the token manually — typing {assessment_name} for example — or by using the token button:

 Click on the part of the template where you want to place a token. Click the token button. Select your desired token from the dropdown list.

Your token will be placed straight away — have a look at the preview pane on the right side to see how it will look in action.

 Highlight the desired text and click the button on the toolbar. Enter your URL in the popup that appears. Click Insert.

You will be returned to the text editor, with your hyperlink in place.

### Using the text editor for custom questions/tests

As with emails, the text editor toolbar is found at the top of the textbox. It includes a more robust feature set, allowing you to incorporate audio, video functions, and the like:

 Bold/Italic/Underline - Applies this styling to your highlighted text. Insert a numbered or bulleted list. Sub- and superscript Monospaced font. Used to help text stand out. You can also apply text emphasis using bold, italics, or underline. Code snippet. Allows you to type multiple lines of code. Quotations. Creates a block quote Special characters. Choose from Greek letters, fractions, symbols. Position your text to the left, center, right or justified. Change the text direction to right-to-left. Useful for languages like Arabic and Hebrew. Formula editor. Use LaTeX input conventions to enter mathematical formulae. Insert a picture/video/audio file. This will be presented as part of the question. Hyperlink highlighted text. Remove the formatting of highlighted text.

#### Code snippets

The best way to present code in a question is to actually write code. The code snippet function allows you to do exactly that:

 Click the Code snippet button on the toolbar. Type your code in the code box that appears. Your code will be color-coded automatically.

#### Formula editor

As mentioned above, we use LaTeX to present your formulae in your question. The good news is you don’t have to be familiar with LaTeX to be able to use the editor — we have already included some of the more commonly used expressions in the editor. To use them:

 Click the Formula button on the toolbar. Select an expression to use from the options below the text box or type your formula into the text box directly.

You'll need to use LaTeX codes to type any formula that we haven't included as a clickable button. The below table should cover most of your needs.

 Description Command Output plus or minus \pm ± multiplication (times) \times × multiplication (dot) \cdot ⋅ division symbol \div ÷ simple text \text{text} infinity \infty ∞ dots 1,2,3,\ldots 1,2,3,... dots \frac{a}{b} 1+2+3+⋅⋅⋅ fraction \sqrt{x} square root \sqrt{x} nth root \sqrt[n]{x} exponentiation a^b subscript a_b absolute value |x| natural log \ln(x) logarithms \log_{a}b exponential function e^x=\exp(x) deg \deg(f) deg(ƒ) degree \degree ° circle plus \oplus ⊕ circle times \otimes ⊗ not equal \ne ≠ less than or equal to \le ≤ greater than or equal to \ge ≥ approximately equal to \approx ≈ minimum \min maximum \max

Note: There are more than 14,000 expressions that can be used, so it’s very difficult to list them here. You can find all of the symbols and their shortcuts on this website.

### Using the text editor for answers

While writing the answer to a question, the editing toolbar will appear after you have clicked in an answer textbox:

 Bold/Italic/Underline - Applies this styling to your highlighted text. Sub- and superscript Change the text direction to right-to-left. Useful for languages like Arabic and Hebrew. Monospaced font. Used to help text stand out. You can also apply text emphasis using bold, italics, or underline. Code snippet - allows you to type multiple lines of code. Quotations Presents text as a block quote. Formula editor. Use LaTeX input conventions to enter mathematical formulae. Hyperlink highlighted text. Remove the formatting of highlighted text.

Note: Formatting will only apply to the text box you have selected.