can someone help me use the formating on this and where should a tutorial be?
I would like to blockquote /blockquote code /code
can someone help me use the formating on this and where should a tutorial be?
(15 posts) (7 voices)-
Posted 5 years ago #
-
Hello,
The challenge is that within this forum I cannot show you exactly what to type.
This might work. I will purposely misspell blockquote and code as blockquoote and coode.
<blockquoote>
Any text between the opening and closing "blockquoote" markup tags will be indented
</blockquoote><coode>I think using the "coode" markup tag simply changes the font.</coode>
Now, I will copy the above text, but with the correct spelling:
Any text between the opening and closing "blockquoote" markup tags will be indented
I think using the "coode" markup tag simply changes the font.
If this does not format as I hope and you are still confused look at a simple HTML tutorial to learn about opening and closing markups.
Thanks!
Stephen from NYC
Posted 5 years ago # -
The code markup, which can also use the back-quote character (mispelled as ~) causes the font to become monospace, which helps line up columns in real code, but is pretty awful for typing into the text box on the page.
It also prevents the text from being wrapped onto the next line, so only the line breaks you type will appear, whereas normal text is wrapped to fit the column width. Most usefully it preserves leading indents.
So
~
while (a<n) { // A bit of code
a += read(fd, buf, sizeof(buf));
}
~
becomes
while (a<n) { // A bit of code a += read(fd, buf, sizeof(buf)); }
The em markup (misspelled en :-) hanges to italcs for emphasis, so
I <en>love</en> 'Scanini's ice cream.
becomes
I love 'Scanini's ice cream.
It would be great to have a preview of formatting before sending the post.While this is a very computer scientist thing to say, it seems naff to have markup which isn't expressive enough to write a document about itself. It's like having a programming language that couldn't print a valid program.
Posted 5 years ago # -
(ignore this post, it was a failed attempt at trying something out)
Oh and I love Berryline's frozen yogurt ;)
Posted 5 years ago # -
(this is both about ice deserts, and markup)
I'm afraid I moved back to the UK a few years ago, so I can't try Berryline's frozen yogurt.
When I lived in Cambridge, I was a frequent visitor to Mass Ave 'Scannini's. They made the most amazing sorbet I have ever had, it was grapefruit and tequila.I lived in Waltham, and was very fond of Lizzy's
- Armagnac and French Plum
- ice cream
(strong ul and ol)Posted 5 years ago # -
Thanks a lot now that I see how it was done I can markup some code I contribute unfortunatly I can not update my old posts but new ones are to come I have the wiring layout & registers contents I think should be in them and will make a flowchart for what code to make the ads1298 talk to the ft2232h using the maple to control them.
<br /> testing code here surounded by something like html tags<br />
quote we stand on the penguin sholders of jiants so let open source hardware be done in kicad it is open source and easier to use than eagle.
Posted 5 years ago # -
When posting code, I normally put it in a txt file and throw it onto my webserver. Seems to work well!
Posted 5 years ago # -
Hello,
I am curious what the forums software will do with a post which uses the HTML "pre" tag.
Let's give it a try: (it apparently does not work)
Hello, world.
void setup() { } void loop() { }
Thanks!
Stephen from NYC
Posted 5 years ago # -
I should have said, the a is an HTML anchor,
The syntax is
'<' 'a' 'href='http://www.blah.com '>' name you want people to read for the link '<' '/' 'a' '>'
hopefully that looks okay. Strip off the ' to make it work.Posted 5 years ago # -
Hello crenn,
In a previous post you said:
When posting code, I normally put it in a txt file and throw it onto my webserver.
This approach certainly makes the posts shorter. Some of my requests are quite long due to the code I am testing. I forgot who made this request, but someone asked the LeafLabs team to add a "text area" feature (with a slider) to simply the addition of long code in forum posts.
However, what will happen to your code if you decide to stop hosting the webserver? What will happen if you one day decide to stop coding? Will you maintain the webserver for as long as the Maple/Arduino platforms are active?
Thanks!
Stephen from NYC
Posted 5 years ago # -
I'm unlikely to stop coding, I'm an engineering student, probably will end up being my job!
If my code examples are important, I'm sure that they'll exist somewhere in some form. Maybe even in the project section of the leaflabs site!
Posted 5 years ago # -
Hey all,
We've decided to encourage people to use pastebin:
http://pastebin.com/Just copy your code into the text box, choose "C++" syntax highlighting, and voila. Instant link to your code that looks good and doesn't take up a lot of vertical space. Example here:
http://pastebin.com/qBMG0YnY
(above example is from the discussion of sorting algorithms in this thread:
http://forums.leaflabs.com/topic.php?id=209&page=2 )Oh, and everyone should feel free to start posting any code they think is worth showing off either to github or to the wiki on the Maple Software redmine:
http://redmine.leaflabs.com/projects/maple-software/wikiPosted 5 years ago # -
Okay, I've tried pastbin for one of the programs on http://forums.leaflabs.com/topic.php?id=209
Code: Possible "hesitation" bug revealed using strcmp()
WARNING - I only put it there for a month, as a test
Posted 5 years ago # -
I find google sites file cabinet page has version control and updating that is as easy as using gmail and attaching a file. The only thing I do not like is one note is saved the one discription not specificly for eatch release.
But it does not use comparisons.
github I looked at it and it seemed like it had a lot of features compared to other simpler methods but I get confused how to use these they go back to the local or not server based ones and I have to learn up to some fancy web based system.
A instructable how to use it would be great.
But you can also see how eather posting the info in the wiki or in some github or community google sites like airea with filecabinets of tagged c code could be useful and findable.
Posted 5 years ago # -
Wiki!!!!......(crashed out server). Ugh. Ok, but public facing bugtracking, and wiki are both on the way! I hope to see a lot of the forum activity start to migrate there.
Posted 5 years ago #
Reply
You must log in to post.