Guide How to use CODE or ICODE to post codes?

Currently reading
Guide How to use CODE or ICODE to post codes?

CODE tag​


It is desirable to use the CODE tag to publish the codes (i.e. docker-compose in YAML). It displays text in one of several programming languages, highlighting the syntax where possible.

In the text editor search for this button (or type [CODE]...[/CODE]):
Screenshot 2021-08-22 at 20.09.41.png



Click on it and a pop-up will open:

Screenshot 2021-08-22 at 20.15.45.png



You can paste the code in there or use a specific programming language with syntax highlighting:

Screenshot 2021-08-22 at 20.16.18.png



Example:
YAML:
version: "3.5"
services:
  mc:
    image: blackvoidclub/midnight-commander:latest
    container_name: mc
    volumes:
      -  "/:/mnt/host"
    restart: always



ICODE tag​

For small pieces of code use the ICODE tag. Please avoid using this tag to post a lot of codes inside.

In the text editor search for this button (or type [ICODE]...[/ICODE]):
Screenshot 2021-08-22 at 20.09.34.png


The output will be like this: This is an inline code.



Here you can see all the available BB codes on SynoForum:
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Old thread notice: There have been no replies in this thread for quite some time. The last reply was on .
The content in this thread may no longer be relevant. It might be better to open a new thread instead.

Similar threads

Replies
2
Views
963
  • Article
You can bookmark a post to read it later or to save it for whatever reason. To bookmark a post you can...
Replies
0
Views
1,172
  • Article
I’ll try to persuade it to power itself by using the BS generator to create motivational gobbledygook to...
Replies
10
Views
1,968
  • Article
Guide Post quoting
No, it's as simple as selecting a text.
Replies
2
Views
1,240

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top