HippoEDIT homepage Welcome, Guest. Please login or register.
July 31, 2010, 03:40:22 pm
Home Help Search Login Register

+  HippoEDIT - Programmers text editor
|-+  General Category
| |-+  Bug reports
| | |-+  Solved (Moderators: alex, Stefan)
| | | |-+  Syntax file: HTML
« previous next »
Pages: [1] Print
Author Topic: Syntax file: HTML  (Read 422 times)
Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 680



View Profile
« on: October 29, 2009, 02:26:36 pm »

I just used the Code Template <img ==> <IMG SRC="%InteractiveFile%" ALT=""/>

But since i doesn't want to direct to an local file (but type my own location in), i canceled the browse-file-dialog.
(I mean, %InteractiveFile% doesn't fit here)

The issue i saw here was that after canceling the browse dialog,
the Code Template was finished too, letting me alone with an '<img' -part in the document only.

Just as idea:
can it be that after canceling the browse dialog the template is pasted in, even empty?
<IMG SRC="%|%" ALT=""/>


Work around:
In the meantime I have added an second Template for that case.

 <imgi (old template img renamed to imgi,  i for interactive )
   Key: <imgi
   Des: <IMG interactive browse file
   Code: <IMG SRC="%InteractiveFile%" ALT=""/>

 <img  (new template img, for just pasting in the template )
   Key: <img
   Des: <IMG template
   Code: <IMG SRC="%|%" ALT="" />
« Last Edit: October 29, 2009, 02:37:51 pm by Stefan » Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1284



View Profile WWW
« Reply #1 on: October 29, 2009, 06:36:32 pm »

Hi Stefan,

Hm... I see the problem. In case of simple interactive tag, you stop template processing when selecting Cancel. But you still continue and enter nothing by selecting OK. And this is not possible with InteractiveFile etc. You could not open empty file... So I would change the logic in such way, that cancel  in case of dialogs would set tag value to empty and continue processing.
I could not automatically replace it by %|% (at least now I am not sure that this is correct way) but you can get such behavior by doing adding %|% after %InteractiveFile%.

Would try to fix this today.

Best regards,
Alex.
Logged

Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 680



View Profile
« Reply #2 on: November 09, 2009, 08:25:21 pm »

Thanks, the <img case from above works better now with Version 739.

But, what do you think, what is about IIB (interactive input box) ? like

<A HREF="%Link%">%Link Text%[/url]%|%

If i cancel one IIB - then the whole insertion of the CT (code template) is canceled too.
The same thing as above. But i would expect to get the CT inserted like:
<A HREF=" "> [/url]%|%
at least, if possible.
Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Offline Offline

Gender: Male
Posts: 1284



View Profile WWW
« Reply #3 on: November 09, 2009, 08:32:54 pm »

then do not press Cancel Wink but just OK with empty text.
Logged

Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 680



View Profile
« Reply #4 on: November 09, 2009, 09:39:10 pm »


A> "then do not press Cancel Wink but just OK with empty text"   

 Undecided Right  Grin

Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
Pages: [1] Print 
« previous next »
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC