Click here to Skip to main content
11,505,486 members (51,595 online)

Article Writing

 
QuestionNot able to add Java code while writing Article Pin
KaurKhushboo14-Jan-13 1:25
memberKaurKhushboo14-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:

<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
KaurKhushboo14-Jan-13 20:29
memberKaurKhushboo14-Jan-13 20:29 
GeneralRe: Not able to add Java code while writing Article Pin
Chris Maunder15-Jan-13 17:19
adminChris Maunder15-Jan-13 17:19 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 2 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid