Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Word Press Code Block

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #22639
    cosizzle
    Member

    Hello all,

    After searching, installing, demoing and uninstalling about a million different Plug-ins for getting a block of code on a blog post I figured it was time to email Chris and ask for his expertise. He replied back with two links:

    Code Markup: http://www.thunderguy.com/semicolon/wor … ss-plugin/

    Syntax highlighting: http://softwaremaniacs.org/soft/highlight/en/ (Theres an english link on there Chris. (he had sent me a german link))

    I have them both installed and enabled however… They don’t seem to be working at a full 100%

    My problems are:

    With Code Markup, the syntax was lacking so I created a style for it

    Code:
    code {
    display: block;
    font-family: monospace, mono;
    width: 100%;
    margin:20px auto;
    padding: 0.5em;
    background-color: #f8f8f5;
    border: 1px solid #ccc;
    white-space: pre;
    overflow: auto;
    line-height: .8em;
    }

    So that looks pretty good, im happy. However its not syntax colouring is not taking effect. Looking at the source it looks as if its taking < > and turning them into "&gt;" I beleve that this is because something isnt working with Code Markup. Thus resulting in Syntax Highlighting not being able to identify what the language is.

    The code within the blog post looks like this

    Code:








    Any help to get me on the right track would be most appreciated. Thanks in advance!
    -Cody

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.