The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to copy/paste C# and QM code in the forum (with colors etc)
#1
To copy/paste code from the program to the forum:
- Program: use menu Edit -> Other formats -> Forum. It copies the selected or all text to the clipboard.
- Forum: simply paste in the post. Don't use the Code button.

To copy/paste code from the forum to the program:
- Forum: click the Copy link at the top-right of the code.
- Program: paste in the code editor. If QM displays link 'Click here to correct the pasted code' , click it. See also ForumFunctionsToQm.

To post C# code not from LibreAutomate, can be used bbcode cs:
 
Code:
Copy      Help
[cs]C# code here[/cs]

QM code in the forum is with commas (,) and semicolons (;) instead of tabs and spaces. It's because tabs and spaces may disappear in the forum. These characters are important. When you copy text using menu Edit -> Other Formats, it replaces tabs and spaces to commas and semicolons. When you copy forum code and paste in QM, QM restores tabs and spaces.

See also: QM dialog code in the forum


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)