代码块中的换行以避免水平滚动条

Is it possible to allow word wrapping for code blocks as to avoid the horizontal scrollbar?

Even better if this can be configured to affect code blocks of a particular language only.

.lang-jai.hljs {
  /* Disable max-height as to avoid vertical scrollbar; always show code blocks in full */
  max-height: none;

  /* Enable word wrapping in jai code as to avoid horizontal scrollbar.  */
  overflow-x: auto; 
  white-space: pre-wrap;
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.