Click here to Skip to main content
15,881,715 members
Home / Discussions / Article Writing
   

Article Writing

 
QuestionNot able to add Java code while writing Article Pin
Khushboo Kaur14-Jan-13 1:25
Khushboo Kaur14-Jan-13 1:25 
Hi All,

I am trying to write an Article on Android Mobile Application. While I am writing the code, e.g.
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.LoaderManager;
To hightlight this code section, I selected 'Formatted' and then selected 'Java' as the language. When I preview this web page, the above code is shown as follows:

XML
<span class="Apple-tab-span" style="white-space: pre;"> </span>import android.support.v4.app.FragmentActivity;
<span class="Apple-tab-span" style="white-space: pre;"> </span>import android.support.v4.app.LoaderManager;


HTML content is also added along with the Java code!
How can I correctly hightlight the code section in my article?
AnswerRe: Not able to add Java code while writing Article Pin
Sean Ewington14-Jan-13 3:18
staffSean Ewington14-Jan-13 3:18 
GeneralRe: Not able to add Java code while writing Article Pin
Khushboo Kaur14-Jan-13 20:29
Khushboo Kaur14-Jan-13 20:29 
GeneralRe: Not able to add Java code while writing Article Pin
Chris Maunder15-Jan-13 17:19
cofounderChris Maunder15-Jan-13 17:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.