Author Topic: Force change of document type ?  (Read 567 times)

gordonisnz

  • Guest
Force change of document type ?
« on: February 14, 2009, 02:19:45 pm »
Hi,

I'm wondering -  Is this an existing feature - If not, i'll like to suggest it...


Basically, If I have an HTML page, & use HippoEdit - It tidies up the code & correctly indents all the LISTS (OL / LI / UL etc )

HOWEVER,

I usually have *.txt files as templates, used in PHP scripts - The PHP scripts get the template files, & inserts them into the screen.


I'm wondering, with HippoEdit, can I open up the *.txt files & FORCE it (in a single instant) to  treat the file as HTML..

Ie there may be opening HTML tags in another file - (& so the whole file may not validate) - But any code within the file - will be indented accordingly..

Does that make sense ?

Ps, re above - I dont want *EVERY*  *.txt file to be treated as HTMl, but if i want to, can I press 1 or 2 keys, & treat the file i've opened as HTML instead of plain text

Hopefully this makes sense



gordonisnz

  • Guest
Re: Force change of document type ?
« Reply #1 on: February 14, 2009, 02:28:15 pm »
Sorry folks,

Found it...

View >> Syntax >> HTML

(I hate it after finding things 5 minutes after asking how to find etc... )



Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
  • Karma: +6/-0
    • View Profile
Re: Force change of document type ?
« Reply #2 on: February 14, 2009, 03:00:05 pm »
(I hate it after finding things 5 minutes after asking how to find etc... )

Yes, every time the same, me too :D

Note, you can also use
Right-click > context menu >> Syntax >> HTML

or just click on the syntax name in the status bar.

For those didn't know:
with menu "Tools > Options... > [ + ] Syntax Settings"
you can disable syntaxes you doesn't need often, to shrink the list of available syntaxes, make it easier to choose the right one ;-)

gordonisnz

  • Guest
Re: Force change of document type ?
« Reply #3 on: February 14, 2009, 03:02:55 pm »
Just curious..

If I double click the status bar - I can change the line number - But i can't change anything else....

No worries - Just advising



Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Force change of document type ?
« Reply #4 on: February 15, 2009, 04:36:26 pm »
anything else is changeable by single click ;) Then you would get a context menu or it would be chnage directly.
Double clck was in previous versions of HE ;)
 

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
1036 Views
Last post August 04, 2009, 01:24:53 pm
by alex
3 Replies
424 Views
Last post September 02, 2009, 09:10:11 pm
by alex
2 Replies
274 Views
Last post September 03, 2010, 11:29:07 am
by photon
2 Replies
200 Views
Last post August 27, 2011, 01:57:44 am
by RickF
2 Replies
40 Views
Last post March 13, 2012, 05:32:56 am
by vineel567