Hi,

I am trying to add a source code snippet in my website. This is how it looks after adding it to the text box.

But I don't want it to look this way. It should look somwhat similar as below:-

In short I need to-

1) add my source code snippet in a separate box which will be a scrollable and will be easier to read.

2) Should have a proper alignment.

3) Should have a faded background as above.

As I am a newbie to this HTML/CSS world, any help regarding this will be appreciated.

Here is the link to my website:

http://www.mobiledevnation.com/group/android-application-development

Thanks,

Sangram

Views: 87

Reply to This

Replies to This Discussion

Our text boxes can't accommodate such coding. Someone may be able to provide some kind of hack to make it work, but I'm doubtful. What is this code for anyway?

I'm not sure there's a great answer to this. You can use the <code> tag to display code, but you'll need to entity encode anything that can interpreted as HTML or it might be stripped out of a forum discussion. Maybe there are some more adept people here on Creators who can speak to sharing code like this. 

i would like to see an example of what it is that you are trying to accomplish so that I may be able to try helping.

RSS

Latest Activity

Jorge Bravo joined Allison Leahy's group
Thumbnail

The Sandbox

Join The Sandbox to experiment with Ning 3.0 now!The Ning Team will be triaging bug reports and…See More
18 minutes ago
Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Thanks for looking into it, SM!"
32 minutes ago
Kos replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"You can remove that earlier code and replace it with this.  If you don't want the bold,…"
33 minutes ago
Gary W Norman replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"too cool! Let me check it out..and I guess i over ride the old one denoting font size with this.…"
38 minutes ago
SM replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"I asked Jon if SSO cost money or not? I guess at some point in time used to charge…"
53 minutes ago

NC for Hire
Bernard Lama replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"OIC then we can only do this with javacript code. I will try it and let you know. Best Bernard"
1 hour ago
A discussion started by Andrew Sanderson was featured

Video chat for ning network

I hva eread a dew discussions about adding video to ning networks and wanted to get all the…See More
1 hour ago

NC for Hire
SweetPotato replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Diego, I PMd you. hope you got it. SP"
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service