Prettifying preformatted text (1)

If you have many blog posts that contain the preformatted text you can add the following code in Custom CSS. You will get the same aspect as the code below.

pre {
  border-style: dotted !important; 
  border-width: 2px !important; 
  border-color: #aaaaaa !important;
  background-color: #f2f2f2 !important;
  padding: 10px !important;
  font-family: 'Roboto Mono', monospace !important;
  font-size: 16px !important;
  word-break: break-word !important;
  white-space: pre-wrap !important;

Photo by Teng Yuhong on Unsplash

Post a Comment