Some of JetBrains's IDE's have lines between the file and folders in the "Project" sidebar, which is helpful for showing the file folder hierarchy.
Here is how my PhpStorm file explorer currently looks: File Explorer
Here is how I want it to look: File explorer sidebar with lines between files and folders
Note: I cant post image - not enough rep points.
Is it possible to do this in PhpStorm? I'm using PhpStorm 8.0.3 on Ubuntu.
Such "lines" are part of the GUI Theme (also known as Look & Feel in Java applications).
You are using Darcula GUI Theme that does not support drawing such lines.
Your only option -- choose another GUI Theme at Settings (Preferences on Mac) | Appearance & Behaviour | Appearance --> Theme.
Problem 1: It will be light theme as Darcula is the only one dark theme.
Problem 2: I'm not sure if there is a theme for Linux version of PhpStorm that supports such lines (I'm a Windows user -- here "Windows" theme supports such lines). If there is none .. then you are out of luck...
In recents PhpStorm versions you can now use Show tree indent guides option
In:
-> Settings
-> Appearance & Behavior
-> Appearance
-> UI Options
-> Show tree indent guides (checkbox)
Resulting something like that:
Related
I am a user of PHP-Storm and have been using it for years, the only issue I have ever had is the fact that phpstorm always tells me I am missing my reference links when I try to reference images, css styles, fonts, ect. I have looked for a way to set the default path for them but I can only ever find things related to document roots server sided.
My situation:
My root path on server for nginx: /var/www/html/app/vg/public
PHPSTORM deployment path: /var/www/html/app/vg
PHPSTORM local path: C:\Users\A\PhpstormProjects\VG Official Zend
The reason that looks weird is because I am using zend-framework-2
So a reference that works in the code looks like this: (ignore live links)
Mark parent folder of the /salute/ folder as Resource Root.
This can be done via
context menu in Project View panel
Settings/Preferences | Project | Directories
As for "live links" -- place caret there, Alt + Enter and choose Download Library -- IDE will download that file locally and will make new JavaScript library for it.
If you do not want to download them then I may suggest to just disable that particular inspection (same Alt + Enter but instead using Enter on "Download Library" item use Arrow Right (or expand sub menu with mouse) and go from there with the right option.
I want to know how can I have highlighting syntax for TWIG in Sublime Text.
Actually when I open a TWIG file all fonctions and conditions are similar (white on black) :
Documentation
Syntax highlighting and auto-completion for Twig in Sublime Text 2is possible with : PHP-Twig.tmbundle
TWIG Doc "IDEs Integration" : http://twig.sensiolabs.org/doc/templates.html#ides-integration
Bundle's Github : https://github.com/Anomareh/PHP-Twig.tmbundle
Bundle's Documentation : https://sublime.wbond.net/packages/PHP-Twig
Download
You can clone the project with :
git clone https://github.com/Anomareh/PHP-Twig.tmbundle.git
Or download it directly from the Github (last master version) : https://github.com/Anomareh/PHP-Twig.tmbundle/archive/master.zip
Installation
To install this bundle in Sublime Text, a few extra steps are required.
Open Sublime Text and in the Preferences menu click Browse Packages.
In the directory that was just opened, create a new directory PHP-Twig/.
Copy the content of this repo into the directory you just created.
Move the contents of the PHP-Twig/Syntaxes/ directory to PHP-Twig/
Restart Sublime Text.
Apply
To apply syntax highlighting on your Twig HTML files :
Open a .html.twig file
Go to View menu → Syntax → Open all with current extension as → HTML (Twig)
That’s it. It should work by now.
Screenshot
You can also install PHP-Twig.tmbundle through Sublime Text's Package Control.
With Package Control installed:
Go to Preferences → Package Control → Install Package
Type "Twig", and select PHP-Twig.
It will install the same version of #antoine-subit's answer, and will automatically use the correct syntax for any Twig file you open
If you're not used to Sublime, don't forget to click on the bottom right of the sublime window (a drop up/down should appear) and then select "HTML (Twig)" from the list of languages in order to enable the package!
I'm working on Ubuntu, I have solved the problem by downloading https://github.com/Anomareh/PHP-Twig.tmbundle/archive/master.zip and I have done what was wrote inside ReadMe file.
After restarting Sublime Text choose the option called “HTML (Twig)” in “View->Syntax” menu to see the new highlighting.
To automatically highlight all twig files, open any html.twig template and select
“View->Syntax->Open all current extension as…->HTML (Twig)”
I want to switch my text editor to Sublime text 2 but the only issue cant let me do it.
I work with big projects and need very quick to navigate between files. ST2 sidebar doesnt support icon packs on such files .css, .html, ,php, .js etc. I found some article where the one guy explains how to do that - https://sublimetext.userecho.com/topic/19274-theming-of-the-sidebar/ I tried it but nothing happens. I tried do changes on the user-settings file. I suppose I do something wrong
If somebody knows how to do this please help
The newest stable version of Sublime Text 3 has sidebar themeing and many themes (not colour schemes) have added support for custom icons.
So upgrade to this: http://www.sublimetext.com/3
and then either use the default theme, or something like Soda theme to get custom sidebar icons.
For ST3 users. Adding icons for different file types and folders to default theme:
Download archive with icons. Or this one.
Go to Preferences > Browse Packages (In Windows find the Browse packages button to open the packages folder)
Copy(extract) folder from archive to packages folder. If you already have a
Theme - Default folder then just merge them.
Done. Thanks to Xavi Esteve
I have to create a DVD containing a static HTML document referring to other documents stored in sub folders. I want the Html file to be visible, but the sub folders being hidden on each OS (Word, mac, Linux).
I have organised the like this :
list.html
.styles\ (folder containing multiple CSS files)
.datas\ (folder with 200 documents accessible from the page "list.html")
Styles and datas have the attribute hidden activated on Windows. The "." at the beginning of the name of the folder allows to hide them on Mac and Linux.
The dvd works perfectly on windows: folders are well hidden and the html document is well formatted and links to others documents work like a charm.
Problem : on Mac, the html is not formatted and links to documents are all dead. Mac browsers (Safari and Firefox) seem to be unable to access the hidden folders.
Links are relative, and fully working on windows.
Is there any way to link to a folder hidden by a dot on mac ? Any idea ?
Thanks you very much, and sorry for my poor english !
I think you can't do it the way you try. If you rely on the underlying OS to decide what is hidden and what not, you lose the control.
Try using a out-of-the-box xampp server like http://www.server2go-web.de or http://sourceforge.net/projects/servcd/ (newer) or http://www.stunnix.com/prod/aws/overview.shtml (also on linux and else) to run from the DVD. And then create a .htaccess file with an directive to allow hidden files like this.
<Files .*>
Order Deny,Allow
Allow from All
</Files>
Or maybe just rename the folders without the leading .
There's no configuration option in Web Essentials for VS2013 addin to set font style of markdown preview display. Is it possible to configure it using other means i.e. changing files?
I would like to either change it to some more readable serif font or change it to sans serif...
Got it. For some reason the context menu for "create markdown stylesheet" is disabled in 2013 but if you add the file yourself it works. In the solution root make a folder "Solution Items" and a file "WE-Markdown.css"
you should be able to add styles now and it will updates in your markdown preview.
NOTE: i was using version 1.6 Web Essentials for VS2013
EDIT:
As a simple example i am just using a bootstrap cdn include
#import url(http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css);
Though it seems that the css support is not very advanced and there are some issues with multi line code blocks. there may be a way to fix this with some css overrides