CentOS 8.x mediawiki include multi-line source code

From Notes_Wiki
Revision as of 08:57, 15 May 2022 by Saurabh (talk | contribs) (Created page with "Home > CentOS > CentOS 8.x > Web based tools > mediawiki > CentOS 8.x mediawiki include multi-line source code It is often required to have source included as part of article within numbered text such as done at CentOS 8.x Systemd based reverse ssh tunnel service For that we need to use something like: <pre> # First # Second <source line lang="CSharp">Some Multi Line C Sharp Code </so...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > CentOS > CentOS 8.x > Web based tools > mediawiki > CentOS 8.x mediawiki include multi-line source code

It is often required to have source included as part of article within numbered text such as done at CentOS 8.x Systemd based reverse ssh tunnel service

For that we need to use something like:

# First
# Second <source line lang="CSharp">Some
Multi
Line C Sharp
Code </source>
# Third

That has output:

  1. First
  2. Second
    Some
    Multi
    Line C Sharp
    Code
    
  3. Third

Refer:


Home > CentOS > CentOS 8.x > Web based tools > mediawiki > CentOS 8.x mediawiki include multi-line source code