[vtkusers] Contributing text files to the Wiki
Berk Geveci
berk.geveci at kitware.com
Tue Dec 5 13:51:43 EST 2006
This should work now.
-berk
On 12/5/06, Moreland, Kenneth <kmorel at sandia.gov> wrote:
>
>
>
>
> That's what I have been doing, using the <pre> tags. But like I said, it's
> inconvenient. And now I have recently run into a problem. If there is
> something like < in the text, it is converted to < (probably to give you
> a way around inserting a </pre> tag.
>
>
>
> Unfortunately, I am trying to post an XML file with snippets of C-like code
> in it. The code has dozens of < and > operators in it, and they are all
> converted to < and &rt; so that they do not interfere with the XML
> format. However, when I post the XML to a Wiki page, the < and &rt; are
> resolved by the browser, which invalidates the XML file.
>
>
>
> I really don't want to go through my files and convert all the < to
> &lt;. I just want to upload the damn file.
>
>
>
> -Ken
>
>
>
>
> ________________________________
>
>
> From: David Cole [mailto:david.cole at kitware.com]
> Sent: Tuesday, December 05, 2006 8:40 AM
> To: Moreland, Kenneth
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Contributing text files to the Wiki
>
>
>
>
> Well... I don't know about submitted files, but I do know you can usually
> prevent the grief associated with the special html characters when you embed
> the text by enclosing it with "<pre>" and "</pre>" (the html pre-formatted
> tag).
>
> I did that when I posted the script section of this Wiki page:
> http://www.cmake.org/Wiki/CMake_Useful_Variables/Get_Variables_From_CMake_Dashboards
> ...and it seems to have preserved the special characters as I intended.
>
> The only thing you have to worry about is if your text includes "</pre>" --
> then you have some manual edits.
>
> I think you can also fool the Wiki into accepting an uploaded text file
> simply by giving it a ".jpg" extension when uploaded... That's also
> inconvenient, though.
>
> HTH,
> David
>
>
> On 12/4/06, Moreland, Kenneth <kmorel at sandia.gov> wrote:
>
> I've been trying to commit text-based files to the Kitware Wiki such as
> cmake files and xml material files. Of course, the upload file feature
> does not let me upload files of these types. I've resorted to embedding
> the files in a regular Wiki page. However, this solution is
> inconvenient for both uploading and downloading the file. It has also
> been giving me a lot of grief about special html characters like '<',
> '>', and '&'.
>
> Could someone add the file extensions .txt, .cmake, and .xml, as well as
> any other relevant text types, to the accepted list of Wiki uploads. Or
> does someone have a better solution?
>
> -Ken
>
> **** Kenneth Moreland
> *** Sandia National Laboratories
> ***********
> *** *** *** email: kmorel at sandia.gov
> ** *** ** phone: (505) 844-8919
> *** fax: (505) 845-0833
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
--
Berk Geveci
Kitware Inc.
28 Corporate Drive
Clifton Park, NY, 12309
More information about the vtkusers
mailing list