how to enter code without html filter - (using google search)

2createwdrupal - January 16, 2009 - 03:11

I've run into a little problem in entering code into a drupal page. Actually, the problem should be google's because every other code snippet I've used works fine. But, google code is created with line breaks and when the html filter adds
or

markup to the code, it doesn't work.

Q. How to enter the code and have it UN-marked-up and UN-filtered?

Specifically, I tried using Google's adsense search box. It seemed like it should have worked but the results page returned the 404 page even though the URL was correct up to the "?"

I added google search to the title as that may be more the issue than the code. I tried removing all spaces from the code and thought that should have worked.

Thanks for any response and pointers to solutions.

http://www.fromoutoftheblue.com

=-=

VeryMisunderstood - January 16, 2009 - 03:16

two options of the top of my head

use the php input format
create a new input format that doesn't use any filters

unfiltered code

2createwdrupal - January 17, 2009 - 06:24

I think the php input format will add html to anything that is not php, same as filtered and full html.

I did have a thought later of using the tag, but I thought that tag was deprecated.

I do want to leave other parts of the content in html, but a plain text format would work - then I'd put the code in a block and use block reference, which is something I tried also, but the formats were still there.

google should address this, imo, since I've not seen anything like this with any other code snippet.

www.fromoutoftheblue.com

 
 

Drupal is a registered trademark of Dries Buytaert.