SAS Syntax Highlighting in Sublime - sas

I would like to be able to use Sublime 3 as my SAS text editor but cannot seem to configure Sublime to do so. I've visited http://implementing-vdw.blogspot.com/2012/10/new-sublime-text-package-available-for.html and haven't been able to actually get the SAS syntax highlighting to work in
Sublime.
Here's what I did, I don't have/know github so I downloaded the zip file as instructed and placed its contents in C:\Program Files\Sublime Text 3\Packages\SAS. I closed sublime and reopened but don't see SAS as an available syntax.
I'm sure I need to perform another step or two but I don't know what.

Determined what the issue was, the 'Packages' directory where I installed Sublime Text 3 isn't the exact directory where you need to place the SAS folder. As a doublecheck to ensure you are placing the SAS folder in the correct location open Sublime -> Preferences -> Browse Packages..., this is the location where the SAS folder should be placed. Once done you will see SAS syntax available under View -> Syntax.

Here's how I got this to work:
download the zip file from the above blogspot location (I also tried
using git but got a publickey access error)
use Sublime -> Preferences -> Browse Packages to find the directory where this needs to be unzipped
unzip the zip file into the appropriate directory (on MacOS, it was ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/)
rename the unzipped folder to SAS
at this point, I can select the SAS syntax in Sublime via View -> Syntax -> SAS

Related

Installing OpenCart extensions locally

When installing OpenCart extensions, you´re generally given a bunch of folders that should be copied to the root directory and the extension files will find their way to the right subfolders. This works great in FTP software, but on a local installation (Mac OSX) using Finder, this operation makes Finder want to overwrite the folders completely, deleting the actual site and just keep the extension.
I can hold Alt when dragging the folders and it will give me the option to not overwrite, the problem is I have hidden files visible, which means there's now a .DS_STORE file in each folder and the ”Hold ALT”-approach doesn’t work in case there are ANY duplicate files in any of the folders.
I’m sure someone out there has stumbled upon the same problem, any ideas for how to solve such a simple but annoying problem? I do not wish to use FTP software for local file management.
I have the same problem, and i found 3 different ways to solve this:
a - use another file manager, i personally use "Transmit" to do this sort of things;
b - use terminal, like: ditto <source> <destination>. Or easier way just type ditto, and drag the source folder, then drag the destination folder, all inside source will merge inside destination;
c - unzip the plugin, inside the OC folder using the terminal, like: tar -zxvf plugin.zip;

How to get tpl files highlighted in pycharm?

What file association will get the correct highlighting for *.tpl files in Pycharm? I have tried HTML and PHP, but neither seem to get it 100%.
I am using bottle and python 2.7 on a Windows machine.
Just setting it like the picture:
Choose Editor -> File Types -> Recognized File Types -> HTML
Add a Registered Patterns: *.tpl
Your question will be solved.

Sublime Text 2 FileTemplates plugin doesn't work

I want to use "FileTemplates" plugin in Sublime Text 2. I installed it with Package Controller, but when I use "Create file from template" and select something, nothing happens! It doesn't even create a file.
How can I make it work? Any ideas?
You need to find you current user's packages folder. Here you will find where the FileTemplates package has been installed. On my Windows system it is %APPDATA%\Roaming\Sublime Text 2\Packages\FileTemplates. You may also get to this folder from the Preferences menu by selecting Browse Packages...
Inside this folder there is a Templates folder. Inside this folder you will find the pre-canned file templates. You may create your own by copying and pasting the existing files to create the templates you like. You will need to create a .file-template file in the FileTemplates folder. This file is an xml file which tells sublime where to find the actual template and what parameters to the file creation the user may pass into the template. For instance $name is the parameter that the user is prompted for which will be used to name the file created from the template. Hope this helps.

Why can't I launch notepad++ from the command line anymore?

I'm teaching myself some Django tonight using the local dev package at instantdjango.com
I made it through half the tutorial, building a basic map with points on it, then closed out of the console for a bit. I just fired it back up and now when I try to use notepad++ to edit files, console tells me it doesn't recognize the command. What happened?
When I as working through the first half, I was able to type: "notepad++ filename.ext" and I'd get a text editor that would pop up.
Now when I type that, it doesn't recognize the command.
How do I get back the ability to use the text editor and how did I lose it?
In a windows terminal, you can launch notepad++ with the following:
start notepad++ <filename>
Note that the filename is optional.
Most likely the directory in which the Notepad++ executable resides is not in your system's PATH. For information about fixing this please see How to set the path in Windows 2000 / Windows XP.
If you are using gitbash or cygwin, you can create an alias
alias np='start notepad++'
And use
np myfile.txt
This is what I have done, in this way you dont have to type notepad++
Create np.bat file with this set of commands
#echo off
start "" "C:\Program Files (x86)\Notepad++\notepad++.exe" %*
place np.bat file in c:\Windows
open the command prompt and type np or np myfile.txt and enter.
One way is to make a change to this registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Notepad++.exe]
You can download a zipped .reg file from Donn Felker that lets you open a file with just an n shortcut.
I edited the .reg before running it and to make sure the path to Notepad++ is correct (e.g. C:\Program Files (x86)) and I also changed the shortcut to n instead of n.
Then double click to add to your registry.

How do I get Dreamweaver to open the CakePHP view .ctp template files?

How do I open up the template files in Dreamweaver, without having to go through all the "open with" process? I've had problems getting this to work properly in Vista 64-bit, but have had this working in prior versions of Windows, so I know it's possible.
I'm working with CakePHP, so it uses the "ctp" extension, but I'm sure other frameworks have different extensions, so I decided to leave this as generic as possible.
I found an excellent guide to this question that I've copied and pasted from the following link:
Configure CakePHP CTP Files in Dreamweaver
For Windows Vista (64-bit) instructions I just want to preface it with the following useful information and tips:
Instead of "Program Files" use "Program Files (x86)".
The location of AppData is quickly accessible by holding the [Windows key] (between CTRL and ALT) and pressing "R" for Run. This will give you a Run prompt, within which you should type "shell:appdata". This will give you a Windows Explorer window in your AppData folder. My Dreamweaver configuration file was found here: "C:\Users\Jed Hunsaker\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration".
Now is a good time to open another Run prompt and type "shell:sendto". Add shortcuts here to Notepad, Dreamweaver and why not Google Chrome and/or Firefox? Whatever you like.
Now for the pasted instructions in case that link above is broken when you read this:
For Configure/Opening CakePHP CTP Files in Dreamweaver 3 files that you need to edit:-
C:\Program Files\(Adobe or Macromedia)\(Adobe )Dreamweaver(version like 8 or cs3)\configuration
Open up “Extensions.txt” and on the first line at the very end add THTML and CTP separated by commas, so the line should read:
,MASTER,THTML,CTP:All Documents
Similarly add these two extensions to the “:PHP Files” line.
PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files
Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or wordpad. Search for the line which has an id “PHP_MySQL” and add the THTML/CTP file extensions to both the “winfileextension” and “macfileextension” so the line should read:
winfileextension=“php,php3,php4,php5,thtml,ctp”
macfileextension=“php,php3,php4,php5,thtml,ctp”
The final file is another version of the “Extensions.txt” which is located in your “Documents and Settings” Folder in my case this is “C:\Documents and Settings(User_Name)\Application Data(Adobe or Macromedia)(Adobe )Dreamweaver(version like 8 or cs3)\configuration” just add the very same things you inserted earlier in “Extensions.txt” .
Modifying the Necessary Dreamweaver files
There are 3 files that you need to edit. The first two are located in the folder that you have installed Dreamweaver, in my case It is in ‘C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration’.
C:\Program Files\Macromedia\Dreamweaver 8\Configuration in case,if you are using Macromedia Dreamweaver 8
Open up ‘Extensions.txt’ and on the first line at the very end add THTML and CTP separated by commas,
so the line should read
,MASTER,THTML,CTP:All Documents
Similarly add these two extensions to the ‘:PHP Files’ line.
PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files
Next open the ‘DocumentTypes’ folder and edit the ‘MMDocumentTypes.xml’ file, just open it up using notepad/wordpad. Search for the line which has an id ‘PHP_MySQL’ and add the THTML/CTP file extensions to both the ‘winfileextension’ and ‘macfileextension’ so the line should read.
winfileextension=”php,php3,php4,php5,thtml,ctp”
macfileextension=”php,php3,php4,php5,thtml,ctp”
The final file is another version of the ‘Extensions.txt’ which is located in your ‘Documents and Settings’ Folder in my case this is ‘C:\Documents and Settings\Farid\Application Data\Adobe\Adobe Dreamweaver CS3\Configuration’ just add the very same things you inserted earlier.
If you are using Macromedia Dreamweaver 8, you need not to do this edit.
for windows 7 you need to edit one more configuration file:
C:\Users\AppData\Roaming\Adobe\Dreamweaver CS3\en_US\Configuration\extensions.txt
edit just like the other extension files.