Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1054919
    sailorguy81
    Participant

    When creating a post, I paste a snippet of code and then hit the code button in the editing and it looks like it highlights each line individually. Is there a way around this. I essentially want the code block highlighted specifically.
    https://www.rareintel.com/logging-analyzing-unbound-dns-requests-logstash-elasticsearch-kibana-ubuntu-16-04/

    #1055448
    Friech
    Moderator

    Hi There,

    Thanks for writing in! It looks like you paste your code directly on the WordPress editor? So each line of code you have is on its own <p> tag.

    Please paste your code to a text editor first (notepad++, sublime, etc.) and then wrap it with the [x_code] shortcode.

    e.g.
    [x_code]YOU CODE HERE[/x_code]

    Hope it helps, Cheers!

  • <script> jQuery(function($){ $("#no-reply-1054919 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>