Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1086135
    prudhomm
    Participant

    Hi,

    in wordpress there is the shortcode code to display c++ code (or other languages) however to my understanding theme-x redefines it with something definitely not as nice .
    Is it actually possible to display c++ code with highlighted keywords automatically ?

    thanks in advance
    C.

    #1086146
    prudhomm
    Participant

    I have used https://tohtml.com/ to generate some html code that I then insert in a Text

    here is the url with the c++ code.
    http://www.cemosis.fr/feel/

    I would like to customize the fontsize and the background. How can I do that ?

    #1086426
    Lely
    Moderator

    Hi There,

    Please check our code shortcode here:http://demo.theme.co/integrity-1/shortcodes/code/
    To customize background and font size, please add custom-code on the text element class field. Then add the following CSS on Appearance > Customize > Custom > Edit Global CSS:

    .custom-code pre {
        background: red !important;
        font-size: 12px !important;
    }

    Feel free to adjust the values.

    Hope this helps.

    #1090373
    prudhomm
    Participant

    thanks a lot !

    #1090454
    Christopher
    Moderator

    You’re welcome.

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