Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Askupa Software

    (@askupa-software)

    Hi Zeaks,
    Since Mivhak is using Ace Editor now to highlight code, you must specify the language in order for it to highlight properly (there is no auto detection). The way to do it is to add a CSS class to the <pre> or <code> elements. For example, to highlight PHP, use the css class lang-php.

    If you click on the ‘insert code’ button in the visual editor, you can choose the language there, and the CSS class will be added automatically.

    It is a good practice to specify the language, and it will also add the name of the language to the header bar (which looks nice).

    As for bbPress, the highlighting works, but there is a CSS rule (specified by bbPress) that is setting <pre> elements to have a white background. Since you are using a dark skin, the code is not visible on the white background. You can use custom CSS to change the background, or simply use a light skin for Mivhak (like “clouds” for example).

    If I added an option to choose a default language when no language is specified (site wide), would that help?

    Thread Starter zeaks

    (@zeaks)

    Hi, yes adding an option to select a default language when none is added would be great, otherwise I’ll need to go through all of my posts and change the tags.

    As for bbPress, I did try other color schemes clouds included but they all looked the same. You said this is because of the bbPress CSS but the last version worked fine, what has changed that the plugin CSS doesn’t override the forum css?

    Plugin Author Askupa Software

    (@askupa-software)

    What changed is that the plugin is now using the Ace Editor, including their themes (skins). That’s why you see that there are a lot of new skins available.
    Can you change to a light theme so that I can see how it looks and maybe figure out a fix?

    By the way, to properly highlight PHP you have to use the <?php syntax, otherwise it will be treated as HTML. I will add an option to control that as well.

    Plugin Author Askupa Software

    (@askupa-software)

    I have released a new version that fixes some of the issues that we have discussed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Highlight and bbpress issue’ is closed to new replies.