I am in the middle of writing a blog post for my site on a particular technique for creating an iCal feed using MODX and mxCalendar. Long story short, I need to be able to show the snippet call (for mxCalendar) in the content area without having it processed. I can put spaces in between the brackets, but that seems like an inelegant way to go about it to me. Anyone have any solutions that might help? Thanks in advance!
discuss.answer
-
☆ A M B ☆
- 894 Posts
Sounds like you need to use the
FixedPre extra you can use it in conjunction with
SyntaxHighlighter
Hope that helps, good luck.
benmarte - PERFECT. FixedPre was exactly what I was looking for. I'm already using Google Code Prettify for a syntax highlighter and it works well so I'll leave that one alone.
-
☆ A M B ☆
- 894 Posts
Cool, glad it helped
-
☆ A M B ☆
- 24,524 Posts
I've used these for years, the Evo version as well as the Revo version. A real must-have for documentation!
Ok, in use I'm a bit more perplexed. I'm trying to use FixedPre, and when I'm adding the tags, tinyMCE keeps stripping them out. I've tried adding fixedpre as an additional valid element in tinyMCE's config file, but to no avail. Any suggestions on this?
I don't ever use TinyMCE myself, so I'm no help on this. I would think that what you tried would work (unless you didn't clear the site cache to refresh the settings), but TinyMCE can be a cruel mistress.
Quote from: exside at Mar 11, 2013, 10:14 PMMaybe I don't understand the question right, but I do it with that:
[[!SnippetCall:tag? ¶m1=`value`]]
no need for a plugin =)
I was referring specifically to the tag used by FixedPre to perform its function. Whenever you want a snippet call in the content area to render as text instead of actually running, you wrap it in <fixedpre></fixedpre>. TinyMCE was stripping out this tag because it saw it as invalid. However, I finally got this to work using the method I mentioned above; I was simply not clearing the manager cache after making the change to tinyMCE.