HTML with php in sublime 3 - syntax-highlighting

I am using sublime 3 unregistered and have some html code written in .php file . How can I configure sublime so that it doesn't show error for HTML

It is not showing an error for the html there. The error is you are not closing your <script> tag with </script> but you have got </src> that does not work.
I use PHP with HTML all day long. There is no need to make Sublime support using one with the other.

Related

local server xampp not updating my webpages

I am working on a website in php by using xampp as a local server. Problem is that when a write some code in my css,js,php files there are not updating in browser I am using google chrome and firefox but the problem is same on both browsers. I'm using sublime and Atome my text editors.
Below is screenshot of my text editor and browser which code is display in editor that same code is not showing in browser inspect area
Code is:
Inspect Element:
The PHP code (which is present in your editor but not in your web browser) is never sent to the browser! PHP is a script language for the server side and executed on the server.
This means that PHP is interpreted and executed by a PHP interpreter.
Let's make an example:
<b><?php echo "Hello"; ?></b>
This PHP code would produce the following HTML output (which is visible to your web browser):
<b>Hello</b>

Compiled CSS file wouldn't display in my browser

I am new to laravel homestead. I am using a windows 10 for my learning and able to run npm watch-poll. The app.scss is compiled successfully and the app.css file is updated in the public directory but, it wouldn't display in my browser. I have included the CSS script in my blade template. Only when I restart my machine then the css is displayed. Any one can help please.
I do appreciate.
This is how i solved this problem in my own project:
delete your link tag containing href="app.css"
save file
paste the link tag again
save file
If the above doesn't work, try pressing ctrl+f5 to clear browser cache.
How to disable browser cache on chrome:
https://www.technipages.com/google-chrome-how-to-completely-disable-cache

Sublime Text 3 Syntax Coloration Issues PHP/HTML

This is my first post on stackoverflow, and I'm glad to be here.
So I have a syntax coloration issue with Sublime Text 3 in a single file .ctp (Cakephp Template). I use Php and Html in this same file. The coloration doesn't seems to work in the wrapped language.
Example
What could I do ?
You should probably install the CakePHP package, since it adds syntax highlighting for those template files
After tweaking with "Syntax > html" and "Syntax > php" I get the correct coloration for this case. But in Php files, when you're making a helper for exemple, it's still broken for somes parts.

How to get Smarty Template Highlighting in Zend Studio 9?

I am trying to find a way to get smarty templates, .tpl files, to work with Zend Studio 9. The smartypdt plugin fails to install on Mac OS, and all the other File Associations--I have tried PHP Editor and HTML as associated editor--fail, too. This time stating: "Unsupported content type in editor". So all I am left with is a plain text mode.
How do I get basic template highlighting? I do not necessarily want smarty support anymore, just basic HTML and JavaScript highlighting would be enough.
On the File Associations Panel, there is a link to Content Types. There, I have added *.tpl file to the HTML view node. This ensures basic html highlighting and goes a long way when compared to the plain text mode.

Komodo Edit 8 doesn't recognize Django tags for HTML5 pages

I am using Komodo Edit 8 for a Django project. HTML5 pages do not recognize django template tags for syntax highlighting or code intelligence. However, HTML pages do accurately recognize these tags. Is there a setting that can be adjusted? Can I just make all HTML5 pages be recognized as only an HTML page?
It appears to me that .html files that are snippets are recognized as HTML (4) and .html files that contain the <html> tag are recognized as HTML5.
I found this StackOverflow page, but the answer does not correct my problem
My Komodo build is:
Komodo Edit, version 8.0.2, build 12590, platform linux-x86_64
Well, that was a total noob question. The answer is simple. To solve, switch the file type from "HTML5" to "Django" using the selector on the status bar at the bottom of the application.

Resources