|
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?
|
|
|
|
|
I suspect we're having an issue with Java colorization. For the time being, would you please just make it a regular <pre> block?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
If I copy paste complete Java code, then your aspx page is working fine. If I copy paste few lines, could be 2, 10 or 50 lines of code, then it shows erroneous code.
If I use
while working in HTML format, my problem is solved. Only that I have to delete this code also:
before attaching pre block.
|
|
|
|
|
It could be that you were posting during a site update. Things can get a little slow for 5-10 mins.
Have you tried again?
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|