Sublime text 3. PHP Mostrar l’escript al navegador

Si volem provar les nostres pàgines en un navegador per defecte i en una URL determinada Haurem d’instal·lar primer el plugin: SideBarEnhancements.


En em meu cas


——————————SyntaxHighlighter-pre lang=”html”>——-

{
"S:/0-php/": {
"url_production":"http:/213.4.33.41/0-php/"
}
}
----------------------------------------------------------------
{ "S:/polidic/": {
 "url_production":"http:/polidic.cat/" 
}
}
==========================Syn_sec=====================================
{ "Q:/beseit/": {
"url_production":"http:/192.168.1.49/beseit/" 
}
}
==========================local=====================================
{
"c:/appserv/www/polidic/": {
"url_production":"http:/localhost/polidic/"
}
}

-------------------------

{
"c:/appserv/www/enllaços/": {
"url_production":"http://localhost/enllaços/"
} 
}
{
"default_browser":"" ,
"portable_browser": "C:/Program Files/Mozilla Firefox/firefox.exe"
}

Configurar llançament de script: preferences/key binding/uswer

[
{"keys": [ "ctrl+."], "command": "toggle_side_bar" },
{"keys": [ "ctrl+,"], "command": "reindent" },
{ "keys": ["shift+f6"],
"command": "side_bar_open_in_browser" ,
"args":{"paths":[], "type":"production", "browser":""}
}
]

Amb shit F6 s’obra el navegador amb l’escript.



Si volem mostrar l’escript en el servidor localhost Appserv

Configuració de Navegador per defecte a Sublim Text 3

 

{
"default_browser":"" ,
"portable_browser": "C:/Program Files/Mozilla Firefox/firefox.exe"
}

Sublime text 3. Settings. Build System php

Per eliminar el recordatori de nova versió: Settings-User and add there: “update_check”: false,

{
“update_check”: false,

“auto_complete_triggers”:
[
{
“characters”: “b4”,
“selector”: “text.html”
}
],
“color _scheme”: “Packages/Monokai Oark/Monokai Dark/Monokai Dark”,
“font_size”: 17,
“highlight_raodified_tabs”: true,
“ignored_packages”:
[
“Vintage”
],
“ignorr.d_packages”:
[
],
“open_files_in_new_window”: false,
“save_on_focus_lost”: true,
“tab_size”: 4,
“theme”: “Adaptive.sublime-theme”,

}

Sublim text 3 Plugin SFTP/FTP

Aquesta configuració ha funcionat

{
// The tab key will cycle through the settings when first created
// Visit https://codexns.io/products/sftp_for_subime/settings for help
// sftp, ftp or ftps
"type": "ftp",
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
"sync_same_age": true,
"confirm_downloads": false,
"confirm_sync": true,
"confirm_overwrite_newer": false,
"host": "beseit.net",
"user": "urqtejmi",
"password": "Beseit1968!",
// "port": "21",
"remote_path": "/SFTP/",
"ignore_regexes": [
"\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
"sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
"\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
],
//"file_permissions": "664",
//"dir_permissions": "775",
//"extra_list_connections": 0,
"connect_timeout": 30,
//"keepalive": 120,
//"ftp_passive_mode": true,
//"ftp_obey_passive_host": false,
//"ssh_key_file": "~/.ssh/id_rsa",
//"sftp_flags": ["-F", "/path/to/ssh_config"],
//"preserve_modification_times": false,
//"remote_time_offset_in_hours": 0,
"remote_encoding": "utf-8",
//"remote_locale": "C",
"allow_config_upload": true,
}

Preferences.sublime-settings–user (SyntaxHighlighter)

{
"update check": false,
 "auto_complete_triggers":
[
{
	"characters": "b4",
	"selector": "text.html"
}
],
	"color _scheme" : "Packages/Monokai Oark/Monokai Dark/Monokai Dark",
	"font_size": 17,
	"highlight_raodified_tabs": true,
	"ignorr.d_packages":
[
],
	"open_files_in_new_window": false,
	"save_on_focus_lost": true,
	"tab_size" : 4 ,
	"theme": "Adaptive.sublime-theme"
}
===================================================================================
A MÉS DE "update check": false, A HOSTS:

127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
127.0.0.1 activate.adobe.com 

Hosts


# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
127.0.0.1 lmlicenses.wip4.adobe.com
127.0.0.1 lm.licenses.adobe.com
127.0.0.1    license.sublimehq.com