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

Denis replied to PeruCool's discussion 'Alternatives to Ning social network'
"Great site man. Thanks for sharing the link. I am working on mine. I hope I will be done by the end…"
1 hour ago
Perrie Halpern replied to PeruCool's discussion 'Alternatives to Ning social network'
"Is there a specific code generator you use? I hope you don't mind me asking."
2 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Another Feature Request For Ning 3.0'
"This would be a reason to stay on Ning if I knew I could at least have some of what is here."
3 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"more specific header {height:60px;}"
3 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"css"
3 hours ago
Larry Matthews replied to James Nored's discussion 'How do I create a taller header?'
"I apologize for my lack of clarity, and not being a mathematician? Where does the {…"
4 hours ago
soaringeagle replied to James Nored's discussion 'How do I create a taller header?'
"remove a 0 off 600? is this math class?"
4 hours ago
Elshara Silverheart replied to Elshara Silverheart's discussion 'Free Site Promotion'
"Me two, since I forget half the links I post."
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service