CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

How do I format a message to fit within a box?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pic_user



Joined: 25 Aug 2005
Posts: 16

View user's profile Send private message

How do I format a message to fit within a box?
PostPosted: Sat Aug 27, 2005 8:26 pm     Reply with quote

I noticed posters here creating boxes with code in it, with the label CODE just above it.

I have highlighted some code, for example, and applied the "Code" button in the editor but it doesn't create the boxed effect.

Can anyone tell me how to do it?
Guest








PostPosted: Sat Aug 27, 2005 8:50 pm     Reply with quote

you must hit the code button which produces a little tag like [*code]. then insert your code, and again hit the button again and it will make a closing tag, like [*/code]. (minus the stars).

ie:

[*code]
while(true){
foo();
}
[*/code]

Alternatively, you can just type the tags by hand.
newguy



Joined: 24 Jun 2004
Posts: 1909

View user's profile Send private message

PostPosted: Sat Aug 27, 2005 8:57 pm     Reply with quote

What I usually do is cut & paste my code from the CCS editor, then highlight the code (click & drag). Then hit the Code button. It automatically inserts the proper code and /code strings this way.
valemike
Guest







PostPosted: Sat Aug 27, 2005 9:22 pm     Reply with quote

I think you are cutting and pasting from an editor that doesn't insert carriage returns and line feeds.

Try using the CCS editor like mentioned in a previous post, or MPLAB's editor.

other than that, you merely type "[c o d e]" (w/o the spaces) before the code snippet; then at the end of the code snippet (or the next line), type "[/ c o d e ]" (w/o the spaces)
Guest








PostPosted: Sat Aug 27, 2005 10:00 pm     Reply with quote

Code:
Thanks for the help
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group