Active
Project:
Code Filter
Version:
7.x-1.0
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2011 at 23:59 UTC
Updated:
11 Dec 2012 at 19:24 UTC
Jump to comment: Most recent file
I installed and enabled the module. After some simple configuration on text format.
I simply wrote
<?php
print "hello world";
?>
but it shown me as a single line and without syntax highlighting
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Capture.JPG | 40.54 KB | adrianmak |
| #1 | Capture4.JPG | 13.25 KB | adrianmak |
| body text | 14.33 KB | adrianmak | |
| text format settings 2 | 46.94 KB | adrianmak | |
| text format settings 1 | 43.14 KB | adrianmak |
Comments
Comment #1
adrianmak commentedResult page.
Didn't I miss some other settings ?
Comment #2
mlncn commentedSame thing happening here, whether i put it before or after the line break filter. I was in the process of moving this to a bug report since it is reported twice and major since it's a primary function of the module... and then i figured out what i was doing wrong. So here's a "major" support request that needs review ;-)
Solution
Have whatever else you'll have in the order you please; in my case "Convert line breaks into HTML", "Convert URLs into links", and "Correct faulty and chopped off HTML" all follow "Code filter", but i don't think it matters as long as "Limit allowed HTML tags" comes before it. The problem is the HTML filter strips out the HTML the code filter adds. Works great now! adrianmark, does that work for you?
Comment #3
osox commentedThank you! This help should go straight to README.txt file.
Comment #5
adrianmak commentedIt's still not work for me
Comment #6
designcontext commentedsame for me.
Ok, it works only when I turn of Wysiwyg... is there a chance to get it work with Ckeditor?
Comment #7
fehin commentedDidn't work for me either. The codeblock div only seems to show up when <?php is used but not with
.Comment #8
fehin commentedComment #9
cameron tod commentedFehin, are you having an issue with WYSIWYG support, or with parsing of
<code>tags? Or is it something else?Comment #10
fehin commentedI don't use a WYSIWYG, just regular text fields. The code is displayed in regular text no highlight.
Also does this work with views rewrite field? I tried it and the html was excuted instead of displaying the code.