|
You need to add the link of the uploaded file in your article by yourself. Just uploading will not show it in the article.
Go ahead and edit/update your article and add the upload link.
BTW, I see it approved and visible to others.
|
|
|
|
|
Sandeep, I have now edited the article and have added the download link. Apart from this, I have uploaded the zip file in the right hand side uploading section of the codeproject webapage. The download link on my article is:
"http://www.codeproject.com/KB/android/525313/CustomCursorLoader.zip"
Upon doing so, on my article, a simple hyperlink appears just like below:
Download Cursor Loader Example
Plain text which is clickable and code is downloadable.
You can see my article. I have published it.
Whereas, you can see the other user interface of Download widget on one of my colleague's article:
Integrating HTTP and HTTPS Connection
|
|
|
|
|
Khushboo Kaur wrote: I have now edited the article and have added the download link.
Yes, I checked and found it at the start of your article.
Khushboo Kaur wrote: Whereas, you can see the other user interface of Download widget on one of my colleague's article:
Reason is the styling/tag associated with download is missing. Not an issue. Do this around the download link and should be fine:
<ul class="download">
<li>
<a href="/KB/android/525313/CustomCursorLoader.zip">Download CustomCursorLoader.zip</a>
</li>
</ul>
The way you put the download link, it will appear as is.
Currently, you just have a a-href link. Wrap with the ul-li tag and the class 'download' as mentioned above to get similar look as others.
|
|
|
|
|
Thanks for the reply Sandeep! I have edited the post and have submitted for the approval.
I would like to say that, firstly my colleague did not add any code for downloading the source code. He just uploaded the code in the right hand panel of the web page. Secondly, he does not even know about this css class called "download". Still, the same download widget appears on his web page.
I also faced issues in uploading the code snippet which I have discussed in another Thread. Uploading complete class is not an issue, but when we think of attaching just code snippet, then we need to format it manually with the pre block.
|
|
|
|
|
Good to know you submitted the article.
What I asked was how to fix it. All that would happened by default if you would have used the article submit workflow where it asks if any download to be attached.
About code blocks, you need to always wrap it with a pre tag with a defined language to get proper colorization. You don't need to know any class or style. Put few line of code, select them and use 'code -> C#' for C# code lines. It will automatically apply the need HTML with attribute if any.
Since, I could not edit your article, I suggested you a way to do it yourself.
|
|
|
|
|
Is there any way to export codeproject article?
|
|
|
|
|
Why would you want to export it? If you had an exported article and it was updated, you would end up with an out of date article.
|
|
|
|
|
I just need to export it and imported to my own blog.
|
|
|
|
|
Just put a link to the article. There's no need to download it.
|
|
|
|
|
for now, I'll do that.
is that mean no any exporting feature?
|
|
|
|
|
|
I should say, if the article is your article, there's an export HTML feature on the article page. But that is only for your articles.
|
|
|
|
|
Wow... That's what I want
But I can't find that feature. I have created 3 tips/Tricks. I just want to export those.
modified 21-Jan-13 3:57am.
|
|
|
|
|
At the top right of your tip/trick, there's an orange symbol that looks like this <big></></big> . That's what you need to click.
|
|
|
|
|
Thanks. It works
|
|
|
|
|
You are welcome. Glad I could help.
|
|
|
|
|
|
Try now.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Still I'm not able to upload my code.
I'm in the edit mode. If I'm not wrong, "Add files" is the button used to upload my code. I browsed my code to be uploaded [ which is in zip format ], but there is a cursor which keeps on rotating next to the Upload files button. I noticed one more thing that, even if I just enter into the edit mode, the status next to the upload files button is just keep on rotating.
|
|
|
|
|
How big is the file you're trying to upload?
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
There seems to be some issue in my system. I did it with a different system. Thanks Chris..
|
|
|
|
|
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
|
|
|
|