Submitted by David_H on 2016/02/11 00:39
I followed the instructions here, modifying the NewHTML.htm file: 4. Document Pane
 
It does not result in a change.  Suggestions?
 
Thanks

Comments

Can you attach a copy of the modified NewHTML.HTM file and provide a summary of the chances you wanted  ? 
 
Pierre_Admin
IQ Designer
 

David_H

2016/02/11 18:22

In reply to by Pierre_Admin

The forum will not allow me to attach .htm files.  So here is the text copied and pasted from the NewHTML.htm file, with the only changes I made changing the font size to 18, not because I want it at 18, but just because it'll be instantly hugely obvious if the changes take, so I know my changes are working.
 
Also, in the HTML pane itself I am able to select a font size of 1 - 7.  I'm curious why font size isn't expressed in the same way in the .htm file?
 
<HTML><HEAD>
<META content="InfoQube 0.9.25R" name=GENERATOR>
<STYLE> body {font-family:Sans-serif; font-size:18 pt;}
table {font-family:Sans-serif; font-size:18 pt;}
P {margin: 0px, 0px, 0px, 0px;font-family:Sans-serif; font-size:18 pt;}</STYLE>
</HEAD>
<BODY style="MARGIN: 2px; ZOOM: 1" bottomMargin=0 bgColor=#ffffff leftMargin=2
topMargin=2 rightMargin=2>
<P>&nbsp;</P></BODY></HTML>

Pierre_Admin

2016/02/11 18:37

In reply to by David_H

If you create a blank item, and in the HTML pane, you switch to code view and replace it with this html code, the font is large as expected, so the html is correct
 
Steps are:
  1. Close IQ
  2. Edit the NewHTML.HTM that is in your user folder (perhaps you edited the wrong one, there is also one in the IQ AppFiles folder, that one is for a new user)
  3. Paste this html code
  4. Re-open IQ
Alternatively, you can:
  1. Create a blank item
  2. In the HTML pane, switch to code view
  3. Edit the code
  4. Switch back to normal view
  5. Do Menu > File > Save as Default...
Note that you're missing the encoding meta tag (UTF-8 is the one format to use nowadays). I suggest starting with the one supplied with IQ and making mods on that one
 
HTH !
 
Pierre_Admin
IQ Designer
 

Pierre_Admin

2016/02/11 18:53

In reply to by David_H

FYI The system default HTML file is:
<HTML><HEAD>
<META name=GENERATOR content="InfoQube 0.9.70">
<META charset=UTF-8>
<STYLE> body {font-family:MS Sans Serif; font-size:13;}table {font-family:MS Sans Serif; font-size:11;}</STYLE>
</HEAD>
<BODY style="ZOOM: 1" bottomMargin=0 leftMargin=2 rightMargin=2 topMargin=2 bgColor=#ffffff>
<DIV>&nbsp;</DIV></BODY></HTML>
 
IQ users, please comment if you feel changes are required to this default file... font, style, bullets style and spacing, etc
A UI would be nice to set these... if only I had 30 hour days... 
 
HTH !
 
Pierre_Admin
IQ Designer
 

David_H

2016/02/11 19:24

In reply to by Pierre_Admin

Pierre, I have tried this numerous times, no success.  As an example I tried method # 2 in your post above, selected "view HTML code" from the HTML pane and made font changes, then added some gibberish at the very end such as "this is some text" (just to see if that would work), and then saved that as the new default.  In that case for every new item the HTML pane will contain "this is some text" just as it should, but the font size never changes.  And if I go to the NewHTML.htm file and look at it, the font size has not changed.
 
If on the other hand I use method number one in your post, and change the font size in the NewHTML.htm file itself, it still makes no difference, the font size on new items in the HTML pane simply does not change.
 
I made sure I am changing the file in the user folder.  I also copied and pasted the HTML from the app files folder htm file into the file in the user folder, just so I was starting from what IQ currently starts off with (and then modified that).
 
Would you test this and make sure it's working for you?
 
Thanks
 

Pierre_Admin

2016/02/11 19:28

In reply to by David_H

I used method 2 (the simplest), and selected "Yes, and make this permanent" on the Save as default dialog with this html:
<HTML><HEAD>
<META name=GENERATOR content="InfoQube 0.9.70">
<META charset=UTF-8>
<STYLE> body {font-family:MS Sans Serif; font-size:16;}table {font-family:MS Sans Serif; font-size:11;}</STYLE>
</HEAD>
<BODY style="ZOOM: 1" bottomMargin=0 leftMargin=2 rightMargin=2 topMargin=2 bgColor=#ffffff>
<DIV>testing</DIV></BODY></HTML>
Works perfectly. Video perhaps...
 
Pierre_Admin
IQ Designer
 

David_H

2016/02/11 19:43

In reply to by Pierre_Admin

OK, using method 2 I was able to get it to work.  The mistake I had made when I tried method 2 method the first time was I did not switch back to normal mode before saving, which seems to be a required step.  I also see it's now updated in the NewHTML.htm file itself, as it should be.
 
And strangely, the very moment I made that change and it worked, I was then able to close IQ, modify the file in the user folder, and then have that change take affect in IQ as well.

Pierre_Admin

2016/02/11 19:47

In reply to by David_H

Great !
And I'll fix that bug, so that switching to normal mode will no longer be required.
 
Pierre_Admin
IQ Designer
 

Pierre_Admin

2016/02/17 01:19

In reply to by Pierre_Admin

Fixed in v71 !
 
Pierre_Admin
IQ Designer
 

David_H

2016/02/11 20:45

In reply to by Pierre_Admin

I'm afraid I spoke to soon, there's definitely something weird going on where font size keeps getting overwritten back to the system defaults.  Please see screenshot showing how it's clearly set to 14 in the htm file, but for some reason IQ has reverted back to the defaults of 13 and 11 again.  And even once it's reverted back, the HTM file still shows the values I changed it to.  So the htm file is showing the value I set it to, but it's being overridden from somewhere.
 
Using your method 2 I can change it, but it always gets overwritten.  It appears to get overwritten when I close and  reopen IQ, but I'll have to test that some more to say for sure.

Pierre_Admin

2016/02/11 20:56

In reply to by David_H

Confirmed. The file gets overwritten at startup. I'll fix it right away and release a v70a version
 
Pierre_Admin
IQ Designer
 

Fantastic.  That also explains why method # 2 worked but #1 wouldn't.  Thanks Pierre.

Pierre_Admin

2016/02/11 21:31

In reply to by David_H

This issue is fixed in v70a, now online
 
Pierre_Admin
IQ Designer
 

David_H

2016/02/11 21:42

In reply to by Pierre_Admin

All I have to say is WOW !

Pierre_Admin

2016/02/11 21:47

In reply to by David_H

Your welcome. Not all fixes are that easy !
 
In v70a:
  • Fixed: HTML Pane: Changes to the default HTML document were being overwritten at startup
  • Change: HTML Pane: System supplied default HTML file uses larger font, supports Unicode and more compact bulleted lists
    To use this new file, with IQ closed, either delete your user HTMLNew.HTM file or copy the system one to your user folder
HTH !
 
Pierre_Admin
IQ Designer