ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Commands in-line with OC ?

    Scheduled Pinned Locked Moved IT Discussion
    36 Posts 11 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanpD
      Danp
      last edited by

      Markdown reference

      bbigfordB 1 Reply Last reply Reply Quote 2
      • J
        Jstear
        last edited by

        As Dan stated, you can use markdown in the discussions.

        1 Reply Last reply Reply Quote 0
        • bbigfordB
          bbigford @Danp
          last edited by

          @Danp said in Commands in-line with OC ?:

          Markdown reference

          Oh that's nice... I'll bookmark that. Thanks!

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            It's four spaces before for inline and three backticks on the line before and after a block. Both of these do code style formatting.

            dafyreD 1 Reply Last reply Reply Quote 0
            • dafyreD
              dafyre @scottalanmiller
              last edited by

              @scottalanmiller said in Commands in-line with OC ?:

              It's four spaces before for inline and three backticks on the line before and after a block. Both of these do code style formatting.

              Also, three ~ (tilde) in a row.

              RomoR 1 Reply Last reply Reply Quote 0
              • RomoR
                Romo @dafyre
                last edited by

                @dafyre said in Commands in-line with OC ?:

                @scottalanmiller said in Commands in-line with OC ?:

                It's four spaces before for inline and three backticks on the line before and after a block. Both of these do code style formatting.

                Also, three ~ (tilde) in a row.

                testing ~~~
                

                They work indeed!

                bbigfordB 1 Reply Last reply Reply Quote 0
                • bbigfordB
                  bbigford @Romo
                  last edited by bbigford

                  @Romo said in Commands in-line with OC ?:

                  @dafyre said in Commands in-line with OC ?:

                  @scottalanmiller said in Commands in-line with OC ?:

                  It's four spaces before for inline and three backticks on the line before and after a block. Both of these do code style formatting.

                  Also, three ~ (tilde) in a row.

                  testing ~~~
                  

                  They work indeed!

                  If you use them at the beginning, in place of spaces, looks like it'll just blank out your reply...

                  RomoR 1 Reply Last reply Reply Quote 0
                  • alex.olynykA
                    alex.olynyk
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by DustinB3403

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        Yea putting in ~~~ just hides it.

                        1 Reply Last reply Reply Quote 0
                        • alex.olynykA
                          alex.olynyk
                          last edited by

                          testing
                          
                          1 Reply Last reply Reply Quote 0
                          • RomoR
                            Romo @bbigford
                            last edited by

                            @BBigford said in Commands in-line with OC ?:

                            @Romo said in Commands in-line with OC ?:

                            @dafyre said in Commands in-line with OC ?:

                            @scottalanmiller said in Commands in-line with OC ?:

                            It's four spaces before for inline and three backticks on the line before and after a block. Both of these do code style formatting.

                            Also, three ~ (tilde) in a row.

                            testing ~~~
                            

                            They work indeed!

                            If you use them at the beginning, in place of spaces, looks like it'll just blank out your reply...

                            I believe that is because it expects the optional language identifier for syntax highlighting.

                            1 Reply Last reply Reply Quote 0
                            • dafyreD
                              dafyre
                              last edited by

                              Hmm... I've never had that problem with mine... but I usually only use it when I'm posting code blocks... ie:

                              <?PHP
                              echo "Hello world!";
                              ?>
                              
                              1 Reply Last reply Reply Quote 0
                              • alex.olynykA
                                alex.olynyk
                                last edited by alex.olynyk

                                [root@nextcloud ~]# ip a | grep eth0
                                2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
                                    inet 192.168.128.241/24 brd 192.168.128.255 scope global dynamic eth0
                                [root@nextcloud ~]#
                                [root@nextcloud ~]# ip r
                                default via 192.168.128.254 dev eth0  proto static  metric 100
                                192.168.128.0/24 dev eth0  proto kernel  scope link  src 192.168.128.241  metric 100
                                [root@nextcloud ~]#
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • alex.olynykA
                                  alex.olynyk
                                  last edited by

                                  Thanks to everyone who contributed in this thread. Very helpful.

                                  1 Reply Last reply Reply Quote 0
                                  • DustinB3403D
                                    DustinB3403
                                    last edited by

                                    Another really simple way to do this would be to use Notepad++ and just indent the entire code space.

                                    Copy it from notepad++ and paste it to ML.

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @DustinB3403
                                      last edited by

                                      @DustinB3403 said in Commands in-line with OC ?:

                                      Another really simple way to do this would be to use Notepad++ and just indent the entire code space.

                                      Copy it from notepad++ and paste it to ML.

                                      Now that we know it's just three back ticks before and aft, that's easier than the indent method.

                                      1 Reply Last reply Reply Quote 1
                                      • DustinB3403D
                                        DustinB3403
                                        last edited by

                                        Really

                                        '''
                                        testing
                                        '''

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @DustinB3403
                                          last edited by

                                          @DustinB3403 said in Commands in-line with OC ?:

                                          Really

                                          '''
                                          testing
                                          '''

                                          You have to know what backticks are, of course, for it to work.

                                          1 Reply Last reply Reply Quote 1
                                          • DustinB3403D
                                            DustinB3403
                                            last edited by

                                            test 
                                            

                                            So the ``` and ```` on a individual paragraph works.

                                            bbigfordB 3 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post