All Apps and Add-ons
Highlighted

Problem with Entering Code Sample

Path Finder

I cannot get my code to paste in as a code sample (I have another question to ask!). I have copied and pasted the advanced xml into both notepad and word, but am still unable to get it showing as xml in the preview pane below. I have tried pasting it in, then highlighting it and then clicking code block. I have tried hand-typing in the

 tags and still, the code does not show as xml.

I have tried both IE 7 and Firefox 14.0.1. I have flash installed. Is there something else I am missing to get the code block working correctly?

Thanks,
Sarah

Example of how code gets pasted:



index=errvolsummaryfivemin report="1minCounts" NOT CATEGORY="----" orighost=$HOST$ JVM=$JVM$ APP=$APP$ LOGPLATFORM=$LOGPLATFORM$ DATACENTER=$DATACENTER$ CATEGORY=$CATEGORY$
PIPELINE=$PIPELINE$ | stats sum(count) AS count by APP DATACENTER JVM CATEGORY LOGPLATFORM orighost PIPELINE | eval host=orighost
<module name="TimeRangePicker" layoutPanel="panel
row1_col1">
True
Last 15 Minutes

True

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Path Finder

Apparently it seems to be an issue with my preview window? Since the code now shows in my post correctly, but did not show in my preview pane correctly?

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Splunk Employee
Splunk Employee

In the formatting toolbar where you enter your question, click the button that says:

101
010

and paste your code there.

Highlighted

Re: Problem with Entering Code Sample

Path Finder

Even then the preview window doesn't show it right.

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Splunk Employee
Splunk Employee

this does appear to be a bug with the preview window

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Splunk Employee
Splunk Employee

Yes, this is a known issue with the preview pane; it has been filed with the Splunk Answers team and a fix is in progress.

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Splunk Employee
Splunk Employee

You are correct. I am currently seeing a problem with the preview window.

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Contributor

I am still seeing the same problem with the preview window (Jan 2013)

0 Karma
Highlighted

Re: Problem with Entering Code Sample

Splunk Employee
Splunk Employee

hi SarawWKarvenz,

This is a little script that will do exactly what you want.

:-)

cheers,

V