鑄造、定制轉義處理

鑄造、定制轉義處理

只是快速探究問題是否有可能進行鑄造來檢查線路並對其做出反應?

用例:

# This will print "This is a comment"
echo "This is a comment"
#>This is a comment

echo "This is a shell command"
#>This is a shell command

ls -l
#>total 0
#>-rw-r--r-- 1 user user 0 Apr 18 00:00 file1
#>-rw-r--r-- 1 user user 0 Apr 18 00:00 file2

我想在顯示“執行的程式碼”的地方使用帶有“#>”前綴的文件,並將其顯示為純文本,而不顯示“執行的註釋”。 「普通」指令應以「demo@pc / $」前綴

關鍵是要有可執行腳本文件,可以在乳膠中將其呈現為tcolorbox「視窗」作為 shell 執行:

demo@pc / $ # This will print "This is a comment"
demo@pc / $ echo "This is a comment"
This is a comment

demo@pc / $ echo "This is a shell command"
This is a shell command

demo@pc / $ ls -l
total 0
rw-r--r-- 1 user user 0 Apr 18 00:00 file1
rw-r--r-- 1 user user 0 Apr 18 00:00 file2

謝謝您的任何提示!

相關內容