Got a Technical Question?

From OpenCircuits
(Difference between revisions)
Jump to: navigation, search
(tweak invisibility syntax)
(Question 1: adding C code)
Line 55: Line 55:
 
<!-- _____________________ -->
 
<!-- _____________________ -->
 
== Question 1 ==
 
== Question 1 ==
=== Question ===
+
=== how do I add my c code to this wiki? ===
 
Feb '08: how do I add my c code so it will be colored in this wiki? I can have it export to a html file and rtf
 
Feb '08: how do I add my c code so it will be colored in this wiki? I can have it export to a html file and rtf
  
 
=== Answers ===
 
=== Answers ===
I [[russ_hensel]] don't know, perhaps the reader who really cares can export into a smart editor for reading. The wiki accepts some html, you might try just pasting it in. Perhaps someone out there has a tool or editor script that will do it off line. I realize that these suggestions do not help much, but it is the best I got.
+
Currently the fastest way to add c code to the Open Circuits wiki is to copy and paste the plain text, then add a "code" tag before and after the code.
 +
Like so:
 +
 
 +
<code><pre>
 +
#include <stdio.h>
 +
int main(void){
 +
    printf( "%s", "Hello, world." );
 +
}
 +
</pre></code>
 +
 
 +
We can also discuss the <code>main()</code> function.
 +
 
 +
(hit the "edit" button to see how that is done).
 +
Is that what you wanted?
 +
 
 +
Many IDEs colorize C code; that makes it a little easier to understand.
 +
If you want to see those pretty colors, some options we've seen so far:
 +
* copy-and-paste the source into your favorite IDE. Then it will colorize the code in the way you are used to (which may be different colors than what people with a different favorite IDE see).
 +
* Perhaps you could try exporting HTML from your IDE (or some other off line colorizer tool or script) and pasting it in. The OpenCircuits wiki accepts some html.
 +
* Other wiki use a "source" tag that colorizes C code automatically[http://en.wikibooks.org/wiki/C_Programming/A_taste_of_C]. Should we install that here at Open Circuits?
 +
 
 +
[[russ_hensel]], --[[User:DavidCary|DavidCary]] 12:51, 20 March 2009 (UTC)

Revision as of 04:51, 20 March 2009

Ask Technical Questions Here ( research them first, if Google answers it, use Google, Not Us )

You may get an answer, you may not. Please Date Your question. Put the most recent questions at the top of the question list. Put plenty of detail in the question. Your problem may be clear to you, but not so to the rest of us.

Contents

Question 3

Question

I am looking for a CEF04N6 transistor for an Acer monitor. China wants to sell me 2 at $10 each plus $50 shipping. The monitor isn't worth more than $100. Please advise. Date: 6/23/08

Answers

Question 2

Question

hello i am looking for a inline and paralel messuring tools ,and was wondering if i can do it with a gyroscoop Date:23-2-2008 more or less

Answers

Could you clarify the question a bit? What specifically are you trying to do?

Question 1

how do I add my c code to this wiki?

Feb '08: how do I add my c code so it will be colored in this wiki? I can have it export to a html file and rtf

Answers

Currently the fastest way to add c code to the Open Circuits wiki is to copy and paste the plain text, then add a "code" tag before and after the code. Like so:

#include <stdio.h>
int main(void){
    printf( "%s", "Hello, world." );
}

We can also discuss the main() function.

(hit the "edit" button to see how that is done). Is that what you wanted?

Many IDEs colorize C code; that makes it a little easier to understand. If you want to see those pretty colors, some options we've seen so far:

  • copy-and-paste the source into your favorite IDE. Then it will colorize the code in the way you are used to (which may be different colors than what people with a different favorite IDE see).
  • Perhaps you could try exporting HTML from your IDE (or some other off line colorizer tool or script) and pasting it in. The OpenCircuits wiki accepts some html.
  • Other wiki use a "source" tag that colorizes C code automatically[1]. Should we install that here at Open Circuits?

russ_hensel, --DavidCary 12:51, 20 March 2009 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox