473,480 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Posting code

tlhintoq
3,525 Recognized Expert Specialist
It helps the volunteers here tremendously when you post the actual code that is causing you problems. Not the entire application. Just the parts you have written that are causing the problem.

1 - Copy the code from Visual Studio



2 - In your question thread, click the [code] tags button. Its the one that looks like # symbol


Code tags have magically appeared in your post with the cursor right between them.

[code]|[/code]

Just paste and you should see this
[code] public void BrokenMethod()
{
// I don't understand why this doesn't work
int Yogi = "Bear";
}[/code]

Which will look like this
Expand|Select|Wrap|Line Numbers
  1.         public void BrokenMethod()
  2.         {
  3.             // I don't understand why this doesn't work
  4.             int Yogi = "Bear";
  5.         }
More on tags. They're cool. Check'em out.
May 5 '10 #1
2 1613
Markus
6,050 Recognized Expert Expert
Some context?
May 5 '10 #2
tlhintoq
3,525 Recognized Expert Specialist
It was meant to be a build of something I could copy/paste as quick responses.
Then I thought I would stick in someplace that might get it seen as a gentle hint to people to use code tags.
So the context is ... misc... don't be lazy... wishing the '#' button said [code]
May 5 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1199
by: Ellinghaus, Lance | last post by:
Does anyone know of a ViewCVS type program that is written in Python that would allow viewing CVS files as well as posting new revisions to CVS over the web? Thanks, lance Lance Ellinghaus...
145
6179
by: David MacQuigg | last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating classes in Python. I'm trying to figure out what fundamental benefit there is to having classes. Is all this complexity...
4
3982
by: hugo2 | last post by:
Most of these characters are not on the standard keyboard. Here's a successful contrivance, with comments & cautions, a little page that works in IE6. <HTML><HEAD><SCRIPT TYPE="text/javascript">...
4
1548
by: pauldepstein | last post by:
I am writing code to price some financial options using recursive functions. It compiles but I get a runtime error which is caused by a memory violation. The problem is that the code is much...
29
2054
by: Gernot Frisch | last post by:
Hi, I have no clue. - I want to align the red, green, blue boxes in one line - red,green,blue must be 45px high - red (center) must be as wide as possible - yellow must start exactly below...
13
4338
by: jc | last post by:
I have written a parser using bison and flex to read ASAP2 file for CAN communications. entire development was done in an unix environment and now the code is ready to be integrated to an existing...
3
6505
by: Work007 | last post by:
i am using visual basic express edition and i am very new to it. I have a form 1 which has a textbox. User adds something to this textbox and clicks on the ADD button. User is taken to form 2 and...
2
1513
by: AccessCoder | last post by:
What is the proper way to reference code snippets that are copied from usenet group examples? What about when a developer posts code that is copyrighted and they allow you to use it in a...
8
1230
by: Andy B | last post by:
Before I do a no no on a newsgroup, I need to ask a question: What is the max number of lines of code you can/should post here before it gets too long?
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.