ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

not parse { } in entry

October 26, 2009 5:29pm

Subscribe [3]
  • #1 / Oct 26, 2009 5:29pm

    allibubba

    57 posts

    i’ve been looking through the forum for a way to not parse {} in an entry, but not having any luck, maybe someone can help or point me to a relevant post.

    i'm trying to do a writeup on an AJAX Calendar for EE, i've been using the GeSHify extension to display code blocks which works great until i try to display an EE tag, my {} get parsed via EE and do not display correctly, my current solution is just to add a note to wrap whatever with {}, but it's not a very good solution. it seems like we should have a way to either parse or not parse {} tags in an entry.

    for simple pieces i have been just using

    { as in ampersand#123;

    but when i use GeSHify they are not rendered as {}, but just the code for them (ampersand#123;).

    so i have a bit of a catch-22, using html code does not render, and using {} gets parsed by EE.

    how do you guys display EE code in a post?

  • #2 / Oct 26, 2009 9:10pm

    Bill the Grue

    162 posts

  • #3 / Oct 26, 2009 9:21pm

    allibubba

    57 posts

    not parse {} in an entry

    that plugin allows EE code to be parsed, i'm looking for a way to display EE code in an entry, would like to display something like this:

    Use this tag to do bla:
    {exp:demo}

    just the way this forum does.

    when i add something like the above, i either don’t have the {} rendered, or the contents are not rendered

  • #4 / Oct 27, 2009 9:42am

    Bill the Grue

    162 posts

    Hmm..


    I set the formatting to none, and the EE code wasn’t parsed. So I started a new weblog entry, typed a bunch of EE code, set formatting to “none” and it rendered as I would expect it to, with the curly braces.

    I think this is what you are asking.

    The drawback to this is I have to manually add html elements (I haven’t tried this with a wysiwyg editor).

    Does this help at all?

  • #5 / Oct 27, 2009 11:23am

    Mark Bowen

    12637 posts

    Have you tried using the [ code ] and [ /code ] tags (You’ll need to take out the spaces from the previous) around the ExpressionEngine code. This should automatically allow the braces to show and automatically colour code it too.

    Best wishes,

    Mark

  • #6 / Oct 27, 2009 5:16pm

    allibubba

    57 posts

    @bill, yeah setting formatting to none does allow, but i loose all the other formatting on all my posts, so not really an option

    @mark, yup i just tried that, i changed my GeSHify marker from “code” to “ge” and can now use the [ code ] markup, though when i do use [ code ] i get some strange results, like an extra “</code>” closing tag, i’ve decided to just use <pre> tags for displaying my EE tags

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases