This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of TensorFlow 2.0 in Action and have Thushan Ganegedara on-line!
See this thread for details.
Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Is It Possible This Site Can Support Markdown

 
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just my personal opinion, markdown may improve efficiency in the forum.
 
Saloon Keeper
Posts: 12442
269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From a technical point of view, yes. We could support Markdown, but it would cost time and effort and it's up to you to convince us that it's worth it.

How will Markdown improve efficiency as compared to the BB Code tags that we already have? What functionality are we missing that Markdown has to offer? Which of the many flavors of Markdown should we support and why?
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stephan,

Thank you for your reply an moving me to the correct forum.

It may because I'm still not familiar with this forum, but it always take me double or more time to post a question or answer here than in stackoverflow.

These are just my personal opinions, maybe they are worthless or maybe I missed something, but the idea is that the majority of programmers have been very familiar with stackoverflow and github editing. They may not feel comfortable or attractive to learn something new (actually old way) to actively join communications in this site.




One problem I encountered is that, the draft is hard to read and It always took me some time to adjust the format. See the following example:

my draft wrote:say something.
[code=java]some code.[code]
say somehing.
[quote]some quote [quote]



say something.

say something.

some quote.






I write my draft normally, there is an extra line after the code block. Note that my draft lines above are all stuck together and very hard to read, but if I add an extra line between my draft lines to make it more readable, there would be two extra lines after the code block!

my draft wrote:say something.
[code=java]some code.[code]

say somehing.
[quote]some quote [quote]



say something.


say something.

some quote.






What if I don't want the extra line after code block at all? I need to put my text to the same line of end code block tag, which makes my draft even harder to read.

my draft wrote:say something.
[code=java]some code.[code] say somehing.
[quote]some quote [quote]



say something.
say something.

some quote.






Another problem related problem is that, I don't know how to use inline code block which is not very convenient because I don't want to separate my sentence with very short code to multiple parts.
In markdown, inline code block just need a pair of backtick(``).

Update: Solved. Though markdown is still better.

Ron McLeod wrote:Adding bold tags may be the code standout:
   An inline code example: [b][tt]export class DeviceDetailsComponent implements OnInit[/tt][/b]
   An inline code example: export class DeviceDetailsComponent implements OnInit







A minor question is that, I don't know how to add a horizontal rule here. In markdown, it is as simple as three dashes (---). I manually create it by using strike line tags which is a little silly.

Update: Solved.

Ron McLeod wrote:The [hr] tag will render a horizontal rule.

 
Sheriff
Posts: 3210
476
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frank Mi wrote:Another problem related problem is that, I don't know how to use inline code block which is not very convenient because I don't want to separate my sentence with very short code to multiple parts.


You could use the [tt] tag for inline code.
    An inline code example: [tt]export class DeviceDetailsComponent implements OnInit[/tt]
    An inline code example: export class DeviceDetailsComponent implements OnInit



Frank Mi wrote:A minor question is that, I don't know how to add a horizontal rule here.


The [hr] tag will render a horizontal rule.

 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Ron!

The "hr" tag is great. Though the "tt" tag doesn't have very obvious effect than just typing text...

I have another question now. How did you escape tags in your text? Say, how did you type [ + hr + ] as text without been rendered as a horizontal rule? Can I also escape tags in code block or quote block here?
 
Ron McLeod
Sheriff
Posts: 3210
476
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frank Mi wrote:Though the "tt" tag doesn't have very obvious effect than just typing text...


The [tt] is similar to an HTML <pre> tag - it will render the enclosed text using a monospaced font and will preserve whitespace.

Adding bold tags may be the code standout:
    An inline code example: [b][tt]export class DeviceDetailsComponent implements OnInit[/tt][/b]
    An inline code example: export class DeviceDetailsComponent implements OnInit

Frank Mi wrote:How did you escape tags in your text?


I just use the HTML escape sequences:
    &#91; => [
    &#93; => ]
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot!
 
Sheriff
Posts: 15958
265
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's a great idea, actually. I like markdown and I'd be willing to help out to add the feature.

1. Add an option in the post editor to use MarkDown
2. Add an option in My Profile to use MarkDown by default
3. Make the option available in Alpha and Beta mode
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your understanding, Junilu. I'm looking forward to the day I can use markdown here!
 
Marshal
Posts: 7794
536
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@OP We have published your question/post in CodeRanch's August 2020 journal to ask community's opinion on that.

Please have a cow!
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Liutauras!
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does @OP really "@" all OP users? I didn't receive any notification of that.
 
Saloon Keeper
Posts: 6650
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's just a form of addressing that particular user
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Tim.
 
Liutauras Vilda
Marshal
Posts: 7794
536
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For others who may not know, OP stands for Original Poster, meaning whoever started the thread.
 
Frank Mi
Ranch Foreman
Posts: 126
12
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I totally misunderstood it. Because I always see an "OP" asks questions, and a "STAFF" answers them. So I thought "OP" means a new user or non-staff.
 
Marshal
Posts: 70720
288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:For others who may not know . . .

If you don't know, then you don't know. It sometimes needs explaining.
 
Sheriff
Posts: 22028
108
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Frank Mi wrote:Oh, I totally misunderstood it. Because I always see an "OP" asks questions, and a "STAFF" answers them. So I thought "OP" means a new user or non-staff.


According to Naughty By Nature, it stands for Other People. I'll let you find out what the extra P stands for
 
We're all out of roofs. But we still have tiny ads:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic