What is your opinion on hashnode dev blog's code syntax highlighting?

Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown 路 Publish articles on custom domain 路 Gain readership on day zero 路 Automatic GitHub backup and more

Asad Awadia's photo

Definitely room for improvement

Francisco Quintero's photo

Well it looks:

f = Form.find_by(uuid: '4279a49c-d2fa-47dd-9fda-4e6a74216703')

puts "Count of questions: #{f.form_type.questions.count}"
puts "Count of answers: #{f.answers.count}"

answered_qs = f.answers.pluck(:question_id)
form_qs = f.question_ids

puts "Question IDs: #{form_qs}"
puts "Answered questions ids: #{answered_qs}"

answerable = form_qs - answered_qs

answerable.each do |id|
  q = Question.find(id)
  a = Answer.new(form: f, question: q, content: q.content)
  a.save(validate: false)


Show +4 replies
Jethro Lorenzo Garcia Lising's photo

Max Programming

Thanks. Actually I did do the 3 backtics and dart.

Hopefully they sort it out!

Tirth Patel's photo

Max Programming

You're right, syntax highlighting for dart isn't working.