|
This is why we have the moderation queue.
I'm sorry to say that no one reads instructions. This is a moderation problem, I'm sorry to say, not a signage issue.
cheers
Chris Maunder
|
|
|
|
|
For articles I know if I have code I can place it inline via <code>some code</code> or for several lines of code I can enclose in <pre><code>several lines of code</code></pre>
How about if I want to inline a fixed with font, say for a filename? Can I use the <tt> tag? Or what should I use?
Is there a list of font formats I can use in articles?
|
|
|
|
|
|
|
Is there a way to post code with line numbers?
Is there a way to colorize code (the way Visual Studio colorizes code)?
|
|
|
|
|
Unfortunately the only way to do line numbers is either to already have them in your code and put the <pre> block around it, or to add the line numbers manually. As for colorizing the code, you certainly can. There are a couple of ways to do it, one is to add the language tag in the code, the other is the use the dropdown to add it:
CodeProject Article FAQ - Part 2: How to Post an Article on CodeProject [^]
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Can't you just add linecount="on" to the <pre> like you can in the forums and QA?
<pre lang="Plain" linecount="on">
Line 1
Line 2
Etc.
</pre>
1 Line 1
2 Line 2
3 Etc.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi,
Some articles have CPOL mentioned on top and bottom description.
But individual files in the source code have different license texts.
For example:
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
My question is when an author posts his code on Code Project, does his license override CPOL or the license statement in the individual file stands for the particular file and CPOL is for the files with no explicit license?
|
|
|
|
|
Does anybody know a way to get truthful live-previews?
So far nothing works for me, it always lies, so that whenever I click "Add A Solution".
I then discover that my posted text was modded from what's displayed in the live-preview.
Tried several 'pre' codes, its easy to get the preview looking correct, but it wont post that way.
If not, I'm ok without previews if there's anything I can do to keep the posted text from being auto-modded (it will usually be PCRE regular expression).
modified 5-Oct-21 21:01pm.
|
|
|
|
|
I use the pre tags extensively in Solutions and it always gets posted correctly. I notice that you have only posted one Solution, and it does not have any formatted part. So are there any actual examples of the problem you describe?
And by the way, this has nothing to do with Article writing.
|
|
|
|
|
Many thanks for replying.
Yes, I tried many times answering... https://www.codeproject.com/Questions/727990/REGEX-for-validating-URL
I tried at least 8 different times. The preview displayed perfectly, until I actually clicked the 'Post your solution'.
After that, the text was auto-modded, this happenned irregardless of how many pre tags I experimented with.
Im not sure what finally made the difference, I did change the default paste options.
And then I just used the standard pre tag (not ASM,ASP,etc), and it posted just like the preview.
Again, many thanks for the reply!
modified 5-Oct-21 21:01pm.
|
|
|
|
|
I've just imported a project from GitHub[^], and I noticed a formatting issue:
Source:

Imported:

Where has the <span class="pl-pds"> come from?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I've seen it on a few blog entries and projects. I am not sure the cause, it could be the way GitHub structures their language tags and the article editor spits the <span> tags out.
In any case, I have removed the span tags.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
|
Very weird. I think I fixed them all. How does that look now?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Much better, thanks.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello!
I am trying to update my article, but for some reason always get this error message:
Too many tags. There is a limit of 8.
This never happened before. I tried to reduce the number of tags to 6, but still get this error. Can you please suggest?
|
|
|
|
|
Which article?
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
|
Did you have a chance to look at this issue? I am still unable to update the article.
|
|
|
|
|
Can somebody please take a look? I am unable to make any updates to the article.

|
|
|
|
|
I was able to post a change. If you'd like, you can email me (sean@codeproject.com) the modified HTML[^] and I can apply it
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Thank you! Do you know what was the problem? It is kind of inconvenient if I will have to send you the HTML every time I want to update the article.
|
|
|
|
|
I actually wonder if it was a temporary problem and you might be able to update the article yourself.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
I am planning to make another update soon. Hopefully it will work then. Otherwise I will let you know.
Thank you for your help!
|
|
|
|