I'm using PhpStorm and for some reason in all of my projects the header.php file got messed up. It's just greyed out and PhpStorm doesn't recognize the PHP in the specific files named header.php. The rest is working fine.
It's driving me crazy and I can't figure it out. I already checked file templates, reset it to default. Nothing helps.
I would appreciate any solution, thanks.
Go to Settings/Preferences | Editor | File Types
Locate Text entry in top table
Locate and remove header.php (or very similar one) pattern from bottom table and remove it.
Right now you have somehow told IDE to treat such file as Plain text and it does it for all files named header.php regardless of their location (quite likely it happened when you were creating new header file and forgot to enter .php part).
I am currently working on TFS automated build process and I won't able to edit/create my process template using Default Template. I did all the process required to edit the Default Template, the process is specified in above link, https://msdn.microsoft.com/en-us/library/dd647551.aspx.
When I try to edit the imported file, Encoding message box appears. If I click in "OK" in Encoding box then the template file get encoded in unexpected format and "Invalid Markup" message appears in designer view of WF.
Please suggest on this. I know it's difficult to understand the scenario without Images but I m not able to post an Image because I don't have reputation >10.
So It's really very much appreciating if someone help me on the basis of Info. I have provided.
Thanking you in advance :)
If you're running into encoding issues, you can edit the file directly in notepad after checking it out. Then "Save As..." change the encoding, then save. Then try to reopen it. Sometimes
This appears to have solved someone else's issue:
http://enginecore.blogspot.com/2014/01/invalid-markup-in-xaml-in-visual-studio.html
close all files open in Visual Studio
close Visual Studio
delete the .suo file near the .sln
delete bin and obj folders
Hi all im trying to create a basic screen saver that has a screen split into two, the left hand side will be similar to the dos command tree where it lists all files and folders, the right hand side will be where the files contents are displayed. So when the application starts up the tree on the left is populated and then the application starts to go through all the files one by one opening them and scrolling through them if possible.
So here is where im stuck i cant seem to figure out how to print a directory tree to the screen.
It seems like a trivial question i know but i cant for the life of me find a solution as elegant as the dos command.
As always any help would be appreciated.
You can use the TreeView control to display the folders and files. Just populate it with the folder contents, recursively if necessary.
I have a macro that renames a file at the end to change a .zip extension back to a .docx extension using the Name command:
Name strOldZip as strNewDocX
If I run this in debug mode, it works. However, whenever I run the macro full speed, it doesn't work quite right. The .docx file gets created, but the .zip file icon remains on the desktop. The Word icon and filename don't appear. So I have an empty icon of the .zip file on my desktop, and a .docx file that I've confirmed isn't hidden, but doesn't appear unless I search for it. (Once I find it in the search, I can drag it into a new folder and then back to get it to show up.)
I've tried making the macro sleep for a while after the name command, but that doesn't work either. I think the hiccup might be in the time Windows needs to change the Desktop icons and display the new name, which is why it works in debug mode. Am I right? And if so, how do I get around this?
Posting as answer from #GSerg's comment above:
"Try making it sleep before, not after."
Worked like a charm. Thanks, GSerg!
For no apparent reason, it just stopped. No more color-coding. Is there a mystery setting I accidentally turned off?
I had the same problem and discovered it was because I had enabled global foreground color under Global Styles.
Try out the following:
Select a language manually from the "Languages" menu.
In Settings/Preferences, check the File Associatons.
In worst case, reinstall.
In the Language menu select your corresponding language. For example H and then html
The solution for me was to go into the Style Configurator, select the 'Global Styles' from the Language selection box and uncheck the 'Enable global foreground colour' option. I am not sure why that was checked, but all of the code coloring worked after unchecking it. Thanks Richard!
Have a look in Settings -> Style Configurator. Maybe your styles got messed up somehow. You could try changing the selected style to see if it makes a difference.
I think the saved styles are stored in the "themes" directory under your Notepad++ installation directory, so you could also check that the files have not become corrupted in some way.
I had the same problem (I Googled "notepad++ file coloring quit" to find this discussion.) In my case the coloring quit mid file in a single file. I finally realized that adjacent string literals with one of them a macro was fooling Notepad++.
My code that broke it read:
Write_Supplemental_Configuration(privateData->new_config, FTP_ROOT_DIR"/lists.csv");
and the fix was to add a space after the macro:
Write_Supplemental_Configuration(privateData->new_config, FTP_ROOT_DIR "/lists.csv");
I tried replacing the macro FTP_ROOT_DIR with "foo" and the problem went away.
So in my case it was a macro that fooled the Notepad++ coloring.
watch out for the single quote that you copy from the web. if you get one of those "upper commas" instead of the tic mark it will confuse the code and kill the coloring (in SQL). just delete and replace.
Make sure that when you save the file it's saved as an .html instead of a .txt. This make a difference because the .html allows you to see the different colour codes whereas .txt doesn't.
Check, if you have saved the documents as .HTML and not as .txt
in the menu, choose Settings>Style configurator...
and in the list in the left pan select html, check if the colors for different tags are being shown in the color blocks. if yes, chosse a font and then save and exit.
Check only after you save the document in .html, whether it is working or not.
The language setting solved the issue for (all) 3 Javascript files (.js) which suffered from it, which previously were all recognized correctly as Javascript. For some reason it forgot they were Javascript files apparently!?
First type any thing and Save the file in any format you are working with (i-e; .cpp if c++, .js if JavaScript....etc)
And make sure global foreground color is disabled.
And it should work fine.
File > Save As > Format Type = Structured Query Language > Name the file with '*.sql'. THIS SHOULD BRING ALL THE COLOR CODES.....to differentiate your code and make it look pretty. J
If you want to display text in SQL format, then in menu select Language => S => SQL
Got to Setting -> Style Configuration and remove the global style checkbox
I just had the same thing happen to me. The only way I could fix it was to rename the file (I just added one character). Then open it with notepad++. The code was colored again. Then renamed the file back to the original name and it is still colored.
I have since found that if I close Notepad++ without closing the file first this happens. Try closing the file first then close Notepad++ then reopen the file.
This bug seems to be fixed as of version 7.8.6
If the coloring only stopped working for one file, you should check the extension name of your file. You might have accidentally saved the file as .txt
A couple years late here, but I'm pretty sure you're opening ".txt" files that contain your source code. Because the file doesn't have the language's extension, Notepad++ can't determine how to color-code it. You'll have to select the language under the "Language" tab.