User Tools

Site Tools


indented_code_blocks_in_dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
indented_code_blocks_in_dokuwiki [2022/11/08 22:26] – ↷ Page name changed from indented_code_blocks to indented_code_blocks_in_dokuwiki rajuindented_code_blocks_in_dokuwiki [2022/11/24 22:29] – [Demo code] raju
Line 1: Line 1:
 ==== Requirement ==== ==== Requirement ====
-How to indent the code blocks in a way similar to https://www.gnu.org/software/bash/manual/html_node/Redirections.html?+Indent the code blocks in a way similar to https://www.gnu.org/software/bash/manual/html_node/Redirections.html?
  
 ==== Solution ==== ==== Solution ====
Line 11: Line 11:
 to /etc/dokuwiki/userstyle.css to /etc/dokuwiki/userstyle.css
  
-==== Demo code ===+==== verify ===
 For example For example
   Note that the order of redirections is significant. For example, the command   Note that the order of redirections is significant. For example, the command
Line 17: Line 17:
   ls > dirlist 2>&1   ls > dirlist 2>&1
   </code>   </code>
-  directs both standard output (file descriptor 1) and standard error (file descriptor 2) to the file dirlist, while the command+  directs both standard output (file descriptor 1) and standard error (file descriptor 2) 
 +  to the file dirlist, while the command
   <code>   <code>
   ls 2>&1 > dirlist   ls 2>&1 > dirlist
   </code>   </code>
-  directs only the standard output to file dirlist, because the standard error was made a copy of the standard output before the standard output was redirected to dirlist.+  directs only the standard output to file dirlist, because the standard error was made a 
 +  copy of the standard output before the standard output was redirected to dirlist.
  
 will render as will render as
Line 29: Line 31:
 ls > dirlist 2>&1 ls > dirlist 2>&1
 </code> </code>
-directs both standard output (file descriptor 1) and standard error (file descriptor 2) to the file dirlist, while the command+directs both standard output (file descriptor 1) and standard error (file descriptor 2) 
 +to the file dirlist, while the command
 <code> <code>
 ls 2>&1 > dirlist ls 2>&1 > dirlist
 </code> </code>
-directs only the standard output to file dirlist, because the standard error was made a copy of the standard output before the standard output was redirected to dirlist.+directs only the standard output to file dirlist, because the standard error was made a 
 +copy of the standard output before the standard output was redirected to dirlist.
  
indented_code_blocks_in_dokuwiki.txt · Last modified: 2022/11/24 22:29 by raju