Forums Code Addin Alternative to Insert Code Block
-
terça-feira, 23 de fevereiro de 2010 19:30ModeradorThere has been an Visual Studio addin created by Heslacher based on code by JohnWein which allows one to copy code in Visual Studio and paste it as HTML code block here in the forums.
RTF to HTML Converter Addin
Here is the original Article: Forums Code Formatter
Location of the RTFtoHTML code formatter addin:
Skydrive: http://cid-ccbb9dd00275669f.skydrive.live.com/self.aspx/.Public/RTFTOHTML.zip
Visual Studio Gallery: http://visualstudiogallery.msdn.microsoft.com/en-us/1262da48-acef-4e7a-b56c-a42a84ce6e0e
not updated ->srsoft.us: http://www.srsoft.us/MemberProjects.aspx?mid=692&prjct=RTFTOHTML.zip
VB threads:
Part 1: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261#2d8fe6c2-8060-4e1f-8659-ed65c58d2f9c
Part 2: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261#682f63f9-56d1-4532-8277-7b87384cb708
William Wegerson (www.OmegaCoder.Com )
William Wegerson (www.OmegaCoder.Com)
Todas as Respostas
-
quarta-feira, 24 de fevereiro de 2010 02:28ModeradorThank you William for sharing the Forums Code Addin here!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. -
sexta-feira, 5 de março de 2010 12:35Hi,
a newer version(1.0.6) of the RTF to HTML Converter Addin is avaible here:
Skydrive: http://cid-ccbb9dd00275669f.skydrive.live.com/self.aspx/.Public/RTFTOHTML.zip
Visual Studio Gallery: http://visualstudiogallery.msdn.microsoft.com/en-us/1262da48-acef-4e7a-b56c-a42a84ce6e0e
VB threads:
Part 1: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261#2d8fe6c2-8060-4e1f-8659-ed65c58d2f9c
Part 2: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261#682f63f9-56d1-4532-8277-7b87384cb708
Part 3: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261#2eb69f0d-ae7e-455c-9133-6db03d9c60c1
Visual Studio Galery: Setup only
Skydrive & VB threads: Setup and source code
Added setting form,
to select wether the programming language including the version, the target framework and/or the target platform should be insterted as comment.
to select the fontsize of the html
to select if you want to use the HasCode feature of the forum. But be aware not to use this feature if you are having html tags inside your source code !
Hannes
If you have got questions about this, just ask.
Mark the thread as answered if the answer helps you. This helps others who have the same problem !
C# to VB.NET: http://www.developerfusion.com/tools/convert/csharp-to-vb/ -
quarta-feira, 14 de abril de 2010 11:39Version 1.0.7 with support for VS 2010 has been updated at the locations above.
Hannes
If you have got questions about this, just ask.
Mark the thread as answered if the answer helps you. This helps others who have the same problem !
C# to VB.NET: http://www.developerfusion.com/tools/convert/csharp-to-vb/ -
quarta-feira, 19 de maio de 2010 18:52
Hi ALL,
You may also want to refer to Franks ' video mentioned in this thread.>>
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7f2608df-b91e-4d50-aa5d-cb2a6e3e6974
Direct link.>>
http://www.fls-tech.com/VBNet_Forum/Inserting_Code/
Regards,
John
Please see this thread for Vb.Net learning links.>> http://social.msdn.microsoft.com/Forums/en/vbgeneral/thread/549c8895-6780-42f8-878f-2138214fdeb4 -
quarta-feira, 2 de junho de 2010 01:48
Does this tool do anything more than just slapping a couple of <pre> tags around the codeblock?
Why not point to an example of the output?
.NET: It's About Trust!
http://vfred.mvps.org

-
segunda-feira, 9 de agosto de 2010 20:05
Does this tool do anything more than just slapping a couple of <pre> tags around the codeblock?
It's not very complex, but if you prefer single spaced posts as I do, it does the job.Here's the result of pasting code from the IDE into a post:
Imports System.IO.Ports
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
TextBox1.Multiline = True
TextBox1.Dock = DockStyle.Fill
Try
SerialPort1.Open()
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
Delegate Sub AddText(ByVal Text As String)
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
TextBox1.Invoke(New AddText(AddressOf TextBox1.AppendText), SerialPort1.ReadLine + Environment.NewLine)
End Sub
End Class
-
segunda-feira, 9 de agosto de 2010 20:07
Does this tool do anything more than just slapping a couple of <pre> tags around the codeblock?
It's not very complex, but if you prefer single spaced posts as I do, it does the job.Here's the result of pasting code from the IDE into a post:
Imports System.IO.Ports
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
TextBox1.Multiline = True
TextBox1.Dock = DockStyle.Fill
Try
SerialPort1.Open()
Catch ex As Exception
MessageBox.Show(ex.ToString)
End Try
End Sub
Delegate Sub AddText(ByVal Text As String)
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
TextBox1.Invoke(New AddText(AddressOf TextBox1.AppendText), SerialPort1.ReadLine + Environment.NewLine)
End Sub
End Class
And here's the quote of the above post. Try the same thing with or without the tools of the Forum. Also try pasting the quote into the IDE. I guess what is really needed, since Microsoft seems intent on making use of the Forums more and more difficult, is a Forums browser. David Morton started one on CodePlex, but it was overly ambitious and was abandoned. Reverting to the status of the Forums of 2 to 3 years ago would be an improvement. -
segunda-feira, 9 de agosto de 2010 22:34Moderador
David Morton started one on CodePlex, but it was overly ambitious and was abandoned. Reverting to the status of the Forums of 2 to 3 years ago would be an improvement.
Ya we seem to lose features as time goes on. One dragon slayed only brings out a new one to slay.I am still irked that the code button claims that the code will appear in a monospaced font in the preview, yet once on the post it is not monospaced.
William Wegerson (www.OmegaCoder.Com) -
quinta-feira, 12 de agosto de 2010 20:18
Here's my offerings.
Copy As HTML add-in for Visual Studio
and
Paste As Visual Studio Code plugin for Windows Live Writer
HTH.
-
quarta-feira, 16 de novembro de 2011 02:14
John,
I wasted my time watching this video (having used the direct link), thinking that it was a video of the extension, not just the "manual" way (which I already knew & use a lot).
So I thought I'd make this post just to point out to people that it's NOT a video of the tool, so they don't waste their time as well.
Thanks for posting something you thought was helpful, I just wish you'd made it clear what it was.
(plus ça change, plus c'est la même chose!)
If you found this post helpful, please "Vote as Helpful". If it actually answered your question, remember to "Mark as Answer".
This will help people find the answers that they're looking for more quickly.

