Pages: [1] |
|
|
Author |
Topic: how to stop snippet master from apending php files with DOC Type etc (Read 242 times) |
altoyes
Posts: 11
|
hi all:
love this snippet master
just learning to use it now
question:
when i edit a php file, snippet master automatically appends html code
how do i stop it doing this?
thankyou for your time
alto
===============
at the beginning ie
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
and at the end ie
</body>
</html>
|
|
|
|
admin
Forum Administrator

Posts: 2086
SnippetMaster Author
|
By default, snippetmaster will try to open your files into the WYSIWYG editor. The editor tries to produce xhtml compliant code, which means that if any required html code (like body tags..) are missing, then it will be added.
The possible solutions to stop this are:
1. Change the default so that files are opened into a regular text box instead of the wysiwyg editor.
2. Use the Snippet Tag feature, and then specify the "WYSIWYG="no"" attribute, which will force Snippetmaster to load the file into a plain text editor only. (When selecting the file for editing, be sure to select the SNIPPET. You can find info on snippet tags and attributes here: http://www.snippetmaster.com/documentation/snippet-tag-attributes.html )
|
|
|
|
altoyes
Posts: 11
|
ok, i will try this out, thankyou
btw is snippetmaster meant to be used with php
or is it usually used with html only?
alto
|
|
|
|
admin
Forum Administrator

Posts: 2086
SnippetMaster Author
|
Snippetmaster is an HTML editor, and does not support PHP code.
If your files include PHP code, then I recommend using the "Snippet Tags" to mark only the html areas as editable. This way, it will not mess up your php code since it will not be edited...
|
|
|
|
altoyes
Posts: 11
|
Snippetmaster is an HTML editor, and does not support PHP code.
If your files include PHP code, then I recommend using the "Snippet Tags" to mark only the html areas as editable. This way, it will not mess up your php code since it will not be edited...
with option 2
is this what you meant? is this the correct code?
<!-- #BeginSnippet name="Name the snippet here" "WYSIWYG="no" -->
Editable HTML goes between the snippet tags ...
<!-- #EndSnippet -->
|
|
|
|
admin
Forum Administrator

Posts: 2086
SnippetMaster Author
|
Yes, this is correct. Except you have extra quotes around the wysiywg tag. Please see this link for documentation on how the different Snippet Tag Attributes work:
http://www.snippetmaster.com/documentation/snippet-tag-attributes.html
Basically, what you want to do is mark a section of your text file (php code) as "editable" and then tell SnippetMaster to load it in a regular text box instead of the default wysiwyg editor.
|
|
|
|
altoyes
Posts: 11
|
Yes, this is correct. Except you have extra quotes around the wysiywg tag. Please see this link for documentation on how the different Snippet Tag Attributes work:
http://www.snippetmaster.com/documentation/snippet-tag-attributes.html
Basically, what you want to do is mark a section of your text file (php code) as "editable" and then tell SnippetMaster to load it in a regular text box instead of the default wysiwyg editor.
yes i understand all that
thanks for that link
i will look at it thoroughly
how long are you online for?
|
|
|
|
admin
Forum Administrator

Posts: 2086
SnippetMaster Author
|
I'm online/offline periodically at all times.  I don't really have a regular schedule...
|
|
|
|
altoyes
Posts: 11
|
thankyou,
quesion
will this WISIWIG=no
work in the free version?
answer
yes
|
|
|
|
altoyes
Posts: 11
|
question
i am trying to give my user access - regualar user just for the snippets.
in the settings, what does this mean, is there a snippet list that i should be using?
"
listed in the Users access control list of the Snippet Tag"
answer
once you create a snippet in the page, with the users name attribute,
the pages automatically are listed in the Users access control
|
|
|
|
admin
Forum Administrator

Posts: 2086
SnippetMaster Author
|
I'm not sure I understand your question. Any user that is listed in the "Users" Snippet Tag Attribute will be able to edit the snippet.
Let me know if I did not answer your question. 
|
|
|
|
altoyes
Posts: 11
|
hi admin
i was just answering my own question
too long online 
i could not understand what the following meant
yet all came clear once i logged into the users access
- ah hah ! thats where the list of snippets lives!
"listed in the Users access control list of the Snippet Tag"
this is a brilliant programme
|
|
|
|
|
Pages: [1]
|
|
|
|