Subscribe Bookmark RSS Feed

Add own html code to journal

anneg

Community Trekker

Joined:

Jun 23, 2011

Hello,

I know someone has asked it allready, but there the real problem was adding an image. http://communities.sas.com/message/18908#18983

I really want to add html code (some <div>) to the journal and then save it to html.

Is there any chance to do it in jmp, because we just have jmp and don't have a SAS server to use the ODS.

Or another question, how can I manipulate the export of the html to my satisfaction (adding a reference to a .css file for instance in the header).

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

There's nothing in JMP to do just that. Best I can think of is to insert markers like DIVSTART and DIVEND into the JRN, export it to HTML, and then replace the markers with real HTML.

h = load text file("$DOCUMENTS/Untitled.htm");

Substitute Into(h, "DIVSTART", "<div>", "DIVEND", "</div>");

Save Text File("$DOCUMENTS/Untitled.htm", h);

2 REPLIES
Solution

There's nothing in JMP to do just that. Best I can think of is to insert markers like DIVSTART and DIVEND into the JRN, export it to HTML, and then replace the markers with real HTML.

h = load text file("$DOCUMENTS/Untitled.htm");

Substitute Into(h, "DIVSTART", "<div>", "DIVEND", "</div>");

Save Text File("$DOCUMENTS/Untitled.htm", h);

anneg

Community Trekker

Joined:

Jun 23, 2011

Wow, thanks so much, this is it - I didn't knew this command.