This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Where can I find syntax to as a question in this devzone?

As title, where can I find the syntax for this editor?

If it does not exist,

  • Q1. How can I put sample source code block?
  • Q2. How can I put new line only? (without blank line)

Best Regards.

Jake

Parents
  • Hi,

    The editor is an older version of the markdown language, many HTML style syntaxes will work.

    To preformat text:

    image description

    1. Mark the text you wish to preformat

    2. Click the preformatted text button

    while(true)
    {
        //Do nothing
    }
    

    This will work for most cases, however there are some editor bugs where the procedure above will not preformat properly, is this case you can preformat by using HTML syntax, ie.

    <pre>
    
    Your preformatted code here
    
    </pre>
    

    To preformat a single line you can do this:

    `Cool red line`
    

    Cool red line

    You can make things bold like this:

    **Bold text**
    

    Bold Text

    Emphasized like this:

    *Emphasized text*
    

    Emphasized text

    Line breaks can be done using double enter or by using HTML syntax

    <br>
    

    Line

    broken

    text

    Header styles (useful for blogs and tutorials):

    <h1>Header 1</h1>
    

    Header 1

    <h2>Header 2</h2>
    

    Header 2

    <h3>Header 3</h3>
    

    Header 3


    You can always see the "source code" by viewing the raw text in the edit answer window. Another practical tip is that image upload paths are global, ie. a image that was posted in one answer does not have to be reuploaded, just use the `/cfs-file/__key/communityserver-discussions-components-files/4/preformat.png`(image used in this post) path.

    Finally there's one important gotcha, due to a bug you have to add blank lines above and under special nodes in the text, otherwise they will not perform as intended.

    Best regards,

    Øyvind

Reply
  • Hi,

    The editor is an older version of the markdown language, many HTML style syntaxes will work.

    To preformat text:

    image description

    1. Mark the text you wish to preformat

    2. Click the preformatted text button

    while(true)
    {
        //Do nothing
    }
    

    This will work for most cases, however there are some editor bugs where the procedure above will not preformat properly, is this case you can preformat by using HTML syntax, ie.

    <pre>
    
    Your preformatted code here
    
    </pre>
    

    To preformat a single line you can do this:

    `Cool red line`
    

    Cool red line

    You can make things bold like this:

    **Bold text**
    

    Bold Text

    Emphasized like this:

    *Emphasized text*
    

    Emphasized text

    Line breaks can be done using double enter or by using HTML syntax

    <br>
    

    Line

    broken

    text

    Header styles (useful for blogs and tutorials):

    <h1>Header 1</h1>
    

    Header 1

    <h2>Header 2</h2>
    

    Header 2

    <h3>Header 3</h3>
    

    Header 3


    You can always see the "source code" by viewing the raw text in the edit answer window. Another practical tip is that image upload paths are global, ie. a image that was posted in one answer does not have to be reuploaded, just use the `/cfs-file/__key/communityserver-discussions-components-files/4/preformat.png`(image used in this post) path.

    Finally there's one important gotcha, due to a bug you have to add blank lines above and under special nodes in the text, otherwise they will not perform as intended.

    Best regards,

    Øyvind

Children
No Data
Related