HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Posting html code
Zeaks
New
Just wondering the proper way to post html code using this. I've used lang="html" but it doesn't post it properly, it executes p tags and whatnot. If I use pre lang="html> to wrap < code > it displays properly but also shows the code tag.
I'm referring to this plugin http://vanillaforums.org/addon/creativesyntaxhighlighter-plugin hopefully this posts in the proper place.
0
Comments
Try http://vanillaforums.org/addon/prettyprint-plugin
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Thanks for the suggestion, it works well, know if there's any way to change the color scheme? Grey is not very "pretty".
Yes it is all in the css file for the plugin. Try using a web inspector to work on it and edit the css the way you want, like font color etc you can make it look anyway you want.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@Zeaks sorry but i didn't understood you. Could you be more specific, and if possible give a printscreen or a online url so that i can see what you are trying to explain. Thanks
You can see what I mean here http://zeaks.org/forums/discussion/2/code-test I've made three posts using the same html code, one as instructed using < pre lang="html >, one with both < pre lang="html" > < code > and one with only using < code >
The code tag is not displaying properly, it should not have line breaks example of code
< pre lang="html >, one with both < pre lang="html" > < code > and one with only using < code >
example of pre
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
By default the plugin uses the pre tag, so you dont need to put the code after the pre tag.
But i see that in your first example it didn't work like it should.
You wrote "< pre" (with a space). Try to write it without a space, like "<pre" and see if it works.
If it doesn't work you can also try to change the syntx highlighter trigger from pre tag to the code tag by changing the configurations.
you can see how to do that in:
http://www.creativedreams.eu/creative-syntax-highlighter/documentation/tips-tricks/
I wrote < pre with a space only to show you what I used, there is not space when I actually used it.
I've tried changing the pre tag to code in the configuration that did not help. It seems like the first example using both pre and code should work, but it's displaying the code tag within the post. Any idea why it's doing that?
I'm not even able to post basic html code with h1 tags in it , see last post on my site
The problem may be that this plugin uses tables instead of organized list .
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
i have problem like this
can someone help me to fix syntax highlight problem ?