Answered by:
How to Copy VS Code to Forum topics?

Question
-
I want to Copy Paste some code from my Visual Basic Code Editor window to Forum Post,
simple copy-paste command does paste the code but with Multiple line spacings
so tell me the correct way to copy
here the sample
Private
Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FocusSetting(
Me)btnAddNew.PerformClick()
Answers
-
Click on the blue box with the </> in it at the top of the edit window to open the Insert Code Block window. Paste your code their and pick the programming language you are using, the click Insert to add the code to your post.
Beware. Editing your post after you have inserted a code block will destroy the formatting of the code. If you need to edit the post, copy the code first, delete the code, edit the post and finally insert the code again using the Insert Code Block window again.
- Marked as answer by SANDEEP JAKHOTYA Thursday, April 14, 2011 5:40 PM
All replies
-
Click on the blue box with the </> in it at the top of the edit window to open the Insert Code Block window. Paste your code their and pick the programming language you are using, the click Insert to add the code to your post.
Beware. Editing your post after you have inserted a code block will destroy the formatting of the code. If you need to edit the post, copy the code first, delete the code, edit the post and finally insert the code again using the Insert Code Block window again.
- Marked as answer by SANDEEP JAKHOTYA Thursday, April 14, 2011 5:40 PM
-
-