Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Guide How to use CODE or ICODE to post codes?

  • Thread starter Thread starter SynoMan
  • Start date Start date
  • Replies Replies 0
  • Views Views 481

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.

Thread Tags

Tags Tags
None

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending content in this forum

Back
Top