How can I add code snippets to my reply
When I add code snippets using the < code > tag, It wont show the original code.
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
-
Inappropriate?Seems to work for me:
p = 5.times {|p| p p}
<acronym title="HyperText Markup Language">HTML</acronym>
Can you reply with the code you entered that was not displaying properly?
I’m happy
The company says
this solves the problem
-
Inappropriate?an example:
should be:
< script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" / > -
I believe you need to wrap your script code with <!-- YOUR SCRIPT CODE GOES IN HERE --> The forum is rendering the code instead of just displaying the code.
It would look like this:
<!--<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"/> --> -
Inappropriate?Hi!
I'm still struggling to display some code snippets that include divs and script samples. I tried to surround the snippet with the code tags, but it was only showing an empty grey rectangle without the snippet in it.
Here is a sample of the snippet using the <!-- --> method:
<!--
<div class="js-kit-comments" permalink=""></div>
<script src="http://js-kit.com/for/mysite.com/comments.js"></script>
-->
Is it possible to include divs and scripts snippets within a code tag?
Here is what I get:
Thanks!
-
When you want to use the div and script tags in your site builder, you do not use the <!-- and -->. I'm not sure if I'm understanding your question. Please do clarify if my answer is not what you're looking for. Thanks. -
Thanks for the feedback. What I want to do is to include code samples, here in the Getsatisfaction system (that we use on our company site). I would like to show sample scripts to our users and those sample scripts include (script) and (div) tags. In order to make those snippets look good, I'd like to use the (code) tag that Getsatisfaction interpretes to make those grey quotes in the getsatisfation comment.
For example, I'd like to have something like this:
.
This is a great quote, but I can't quote div or script tags.
I can quote text but if I quote divs or
script tags they are removed from the quote...
Does that make sense? -
Inappropriate?If I add some html and CMS template tags inside the code tag, the rendering is going mad. 2 primary issues:
* some HTML tags will be rendered ( o.0 )
* case-sensitive please :-)
I would like to keep in touch about this feature please
I’m waiting
Loading Profile...



EMPLOYEE
