No BSD License  

Highlights from
htmltool

htmltool

by

 

The HTML Toolbox (HT) stores various crosslink information about Matlab programs using HTML.

frmwrt2(filename)
function [] = frmwrt2(filename)
% [] = frmwrt2(filename)
% Just writing a few lines of HTML code to a prededfined content.


fid = fopen(filename,'w');
[gif_file,dirloc,col] = iniread3;


fprintf(fid,'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">  \n');
fprintf(fid,'<HTML>  \n');
fprintf(fid,'<HEAD>  \n');
fprintf(fid,'   <TITLE></TITLE>  \n');
fprintf(fid,'   <META NAME="Author" CONTENT="B.K. Alsberg">  \n');
fprintf(fid,'</HEAD>  \n');

%% Here we print out the code of selecting a background GIF-file:
if length(gif_file) >0,
 background = ['<BODY BACKGROUND="',dirloc,gif_file,'">'];
 fprintf(fid,'%s \n',background); 
end;

fprintf(fid,'<BODY>  \n');

fprintf(fid,'<P>In this frame the details of the different m-files will appear. Just  \n');
fprintf(fid,'click to the right on the file you want more information. Have fun!</P>  \n');

fprintf(fid,'</BODY>  \n');
fprintf(fid,'</HTML>  \n');

fclose(fid)

Contact us