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.

Approx. reading time 4 minutes

In this article

  1. Using the text editor for emails
    1. Using tokens
    2. Adding links
  2. Using the text editor for custom questions/tests
    1. Code snippets
    2. Formula editor
  3. Using the text editor for answers
  4. Common questions

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:

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

back-to-top

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:

blue-1 Click on the part of the template where you want to place a token.
blue-2 Click the token button.
blue-3 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. 

back-to-top

Adding links

To add hyperlinks to your invitation:

blue-1 Highlight the desired text and click the button on the toolbar.
blue-2 Enter your URL in the popup that appears.
blue-3

Click Insert.

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

    back-to-top

    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:

    pink-1 Bold/Italic/Underline - Applies this styling to your highlighted text.
    pink-2 Insert a numbered or bulleted list.
    pink-3 Sub- and superscript
    pink-4 Monospaced font. Used to help text stand out. You can also apply text emphasis using bold, italics, or underline.
    pink-5 Code snippet. Allows you to type multiple lines of code.
    pink-6 Quotations. Creates a block quote
    pink-7 Special characters. Choose from Greek letters, fractions, symbols.
    pink-8 Position your text to the left, center, right or justified.
    pink-9 Change the text direction to right-to-left. Useful for languages like Arabic and Hebrew.
    pink-10 Formula editor. Use LaTeX input conventions to enter mathematical formulae.

    pink-11 Insert a picture/video/audio file. This will be presented as part of the question.
    pink-12 Hyperlink highlighted text.
    pink-13 Remove the formatting of highlighted text.

    back-to-top

    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:

    blue-1 Click the Code snippet button on the toolbar.
    blue-2

    Type your code in the code box that appears. Your code will be color-coded automatically.

    back-to-top


    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:

    blue-1 Click the Formula button on the toolbar.
    blue-2

    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.

    back-to-top

    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:

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

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

    back-to-top

    Common questions

    Can I include a file for download when writing a question?
    We do not currently support this function. If additional files are required to answer your question, you could hyperlink a download link or external webpage that contains the required information.

    Can normal keyboard shortcuts be used for these features?
    Absolutely. You can use ctrl-B/I/U for bold/italic/underlined text, and ctrl-K to insert a hyperlink — rather than using the buttons on the toolbar. The standard shortcuts apply for copy, cut, paste, and undo as well.

    What file types are supported for image, audio, and video?
    All standard files of these types — such as AVI, MPEG, MP4, WAV, MP3, JPG, and PNG are compatible and able to be used.

    back-to-top