Sublime Text 3 (3103) stop highlighting .ctp files [duplicate] - cakephp

This question already has an answer here:
CoffeeScript syntax highlighting not showing up in Sublime Text 2 [duplicate]
(1 answer)
Closed 7 years ago.
Since I updated to the latest Sublime Text (revision 3103) the highlighting of .ctp (Used by CakePHP framework for templates) extension files has stopped working.
Any solution to this? They look totally plane now...

Go to:
View > Syntax > Open all with current extension .. > PHP

On the bottom right corner you will see the language:
When you click on it, at the top, you have an option that says: Open all with current extension as... see second screenshot.

Related

How to hide these labels on VS code? [duplicate]

This question already has answers here:
Does anybody know the name of this setting inside of VS Code Insiders? For grayed out parameter and variable annotations
(2 answers)
Closed 1 year ago.
By accidently I got these labels on vs code. How can I remove these labels?
Thank you.
It might be due to one of the extension features related to reactjs or javascript. Disable the extensions.

without using select class I want to make sure "sam" option not available in drop down [duplicate]

This question already has answers here:
How to test non-standard drop down lists through a crawler using Selenium and Python
(1 answer)
How to select kendo dropdown element with unselectable="on" attribute using Selenium and Python
(1 answer)
Closed 2 years ago.
I am handling dropdowns in one of AngulasJS application and the dropdown tag name does not start with <select>. I want to check the "Sam" option is not available in the dropdown and confirm. How to handle this without using loops using Java/Python?

PDFJS: Text layer rendering twice

Here's the context:
pdfjs-dist: v2.2.228
angualar/core: 8.2.0 (hybrid Env with an AngularJs 1.5.X)
Objective: to upgrade pdfjs-dist to the latest versions (2.3.200 or at least 2.2.X)
I upgraded from pdfjs-dist 2.0.4xx, and here's what is being rendered:
So basically, instead of having the PDF rendered correctly, with highlightable text and so on, there's like a duplicate of the text: one version of the text is rendered correctly (graphically), the other version seems to work OK for text selection and searching.
When doing any search, PDFFindController works on the highlightable layer (as you can see the area with the greenish text in the upper part of the image).
Any idea what might cause this behavior?
this is due to the new update of PDFjs requires css file to style the pdf.
you can get more details on this from the following question's answer
PDFJS: error on Text rendering for the PDF

break layout when using <s:checkbox/> of STRUTS2 [duplicate]

This question already has answers here:
How to align two submit buttons?
(2 answers)
Closed 5 years ago.
I have problem with using tag s:checkbox need help!!!
I using tag s:checkbox but when run it auto insert tag "tr" and "td" lead to break layout :
JSP :
Click here to display img
When display on browser
Click here to display img
Please , help me to fixed it.
Thanks!
What i think you are looking for is
theme="simple"
Add this too the element

Could not insert new outlet connection [duplicate]

This question already has answers here:
Xcode 4: Creating a UIView xib, not properly connecting
(33 answers)
Closed 9 years ago.
Could not insert new outlet connection: Could not find any information for the class and not showing any class named "ViewController"
Solutions I have done :
- Restarted XCode
- Restarted System
- Deleted the Deriveddata contents from /Library/developer/xcode
But nothing worked for me
Here is the screenshot for the error
I got the same problem as you today... I think this is a bug of Xcode, below is the way to fix the issue:
Close the project you are working on with.
Delete your project's【DerivedData】folder. (This folder may inside your project's folder, or inside ~/Library/Developer/Xcode/DerivedData/(your project)/ ) or somewhere else that was setup by you.
restart your project.
After these steps, the problem should be solved. And from my experience, these steps can solve many Xcode problems, so if you got some problem with Xcode again, try these steps first.
Removing(removing reference, not deleting) and then adding the appropriate file(the file of class you want to add the outlet to) is actually enough.
Edit 1 I found that after unchecking (in XCode 6.3.1) I had to wait a few seconds for the Indexing to appear and complete in the project name box. Same for the way backwards. This increased chances to fix the issue in almost all (but not all) cases.
Edit 2
Removing reference means that You do not delete the file completely but just remove it from the project (it still exist in the folder of your project, you add it later).
That's most often a problem of file indexing.
To fix it try to clean your target and if this doesn't work, go to your Derived Datafolder and delete your application there.
This will force xCode to reindex the files
Just got the same issue on Xcode 4.6.2.
Tried solutions presented in different answers/comments, but it still didn't work.
Then all I did was to just:
save all my work;
just quit Xcode & load it again;
then I was able to insert the new outlet connection successfully.
Hope this will save some time/frustration for somebody else.
Personally, I had the same problem: "could not insert new outlet connection" AND when I was starting typing something like "UI..." XCode wasn't doing anything.
I searched for answers, I tried several things... but it was just an unchecked box. When I was creating a new class, XCode unchecked the box linking the class to the project (I guess).
I can't post a screen shot because I don't have 10 reputations but when you create your class, XCode asks you where you want to save it. Down the finder window, you have 'Targets' and two boxes: 'YouProjectName' and 'YouProjectNameTests'. You should check the first one (at least).
Hope this will help. I saw different discussions about the subject.
I recently came across this problem. I soon realized that the cause had been my own doing. I had previously disabled XCode indexing (which used to take forever & eat up my RAM), using the below code in a terminal window:
defaults write com.apple.dt.XCode IDEIndexDisable 1
To revert XCode to its default state, i used the following line in a terminal window:
defaults write com.apple.dt.XCode IDEIndexDisable 0
Voila! All's well again..
If you've imported the Class into your Xcode Project you have to manually add the Class (.m file) to your 'Compile Sources'.
Select project icon > TARGETS > Build Phases > Compile Sources
Click the + button and add your *.m file.
Finally I did it by removing the xcode completely from my mac and reinstall the xocde.dmg file and then install MobileDevice.pkg and MobileDeviceDevelopment.pkg residing on /Applications/Xcode.app/Contents/Resources/Packages
make sure that your source have had been included in the "Build Phases" place.
This do fix my problem. But I think Xcode is still really buggy and annoying.

Resources