Tagged: 

  • Author
    Topic
  • #6718
    TS-Support
    Administrator
    • Topics: 66
    • Replies: 222
    • Total: 288
    Date joined: 25/07/2017

    This is fairly straightforward once you know what to do. First, click on this symbol on the toolbar:

    View post on imgur.com

    Next, select the correct language from the drop-down list. Usually you will either need:

    • Generic Highlighting
    • CSS
    • HTML
    • XML (use this for XSL too)

    Set the mode. You can leave it as Block-Code for most cases. The other option is for when you want the text inline in a sentence. Now paste your code into the Edit window and click OK.

    View post on imgur.com

    This will insert the code into the editor. If you click into this new code block you will see a Edit button:

    View post on imgur.com

    This will allow you to indicate if you want to show line numbers etc. For example:

    View post on imgur.com

    That is all there is to inserting a code block into a forum topic or reply. When you click Submit it will turn into a nice code block with colour syntax:

    <TFGWItem>
        <Theme>“The Passover​—Its Significance for Christians”</Theme>
        <Method>Talk</Method>
        <Name Duplicate="1">Brother Happy</Name>
        <Time StartTime12="7:21" StartTime24="19:21" EndTime12="7:31" EndTime24="19:31" DurationShort="10 min.">10 min.</Time>
    </TFGWItem>
    

    One of the benefits of using code blocks is that we can Copy your text by hovering the mouse over the code and using the button at the top right:

    View post on imgur.com

    Your brother

    Andrew

  • The forum ‘Frequently Asked Questions’ is closed to new topics and replies.