sublime text 2 autocomplete codeigniter project - codeigniter

frustrated and hopelessly question.
so i downloaded sublime text 2 for first time, i installed packagemanager and a autocomplete.php file from
https://github.com/martinredola/sublimetext2-codeigniter-completions
now question is, how can i setup syntax autocomplete for codeigniter+html+css and disable all other irrelevant odd autocompelete list that pop up !!!
i'm looking for some one who tell me steps he did to make prefect workflow for codeigniter development using sublime text 2.
thanks alot in advance

There is.
Install Sublime Package Control
Then open "Package Control", choose "Package Control: Install Package".
Type in "CodeIgniter" and install the package "CodeIgniter Snippets".

codeigniter snippet doesn't properly work with sublime text 2. I use this package with sublime text 3 and i don't have problems and if you add the sublimelinter package you can do very nice things.
You must install the package control first, the instructions are in the page
https://packagecontrol.io/installation
then hit ctrl+shift+p and write "install package", a full list of applications will be shown then search Codeigniter Snippet and hit enter, repeat the process for sublime linter and it's done

Trust me, I have been down this route many times. In the end, simply it is not worth it. Codeigniter is just not setup for easy autocomplete items.
I use PHPStorm as well as sublime text 2 for work with codeigniter, and even phpstorm which is a commercial product does not have support for codeigniter. There are much more valuable things to setup in a developement enviroment for php, for example do you have a debugger? That was another thing that really helped with my codeigniter development.
I do not use it all the time, usually I like to use a lightweight solution like sublime text 2, but when you are working on pure php code and cant always just set var_dump and print_r statements everywhere - a debugger really helps.

Related

Is it possible to extend Sublime Text 3's go_to_definition?

This will unfortunately be a broad question.
go_to_definition:
doesn't work for jinja2 macros
doesn't go to variable declarations
I also want it to add a suffix and search for that phrase too
Is it possible to improve the go_to_definition so I can make it work for the above scenarios?
As a matter of fact, it is possible, if you know Python. The GotoDefinition class is defined in the Default package in symbol.py (for some reason...). To access it in ST3, install the PackageResourceViewer via Package Control. Open the Command Palette, search for the PackageResourceViewer: Edit Package Resource option, scroll down to Default, then scroll down and select symbol.py. You can now edit to your heart's delight, and assuming everything goes properly, once you save the file the plugin should be automatically reloaded and you can test your modifications.
In case you're not that familiar with developing Sublime plugins, here is the API reference, the unofficial docs, and the Sublime forum for your perusal. Good luck!

Sublime Text Plugin Modification

So I found this plugin: https://gist.github.com/KatsuomiK/3542836
And it is very close to what I'm looking for. I am trying to use sublime text 3 for note taking, and need some way to store images in my notes. Since sublime is a text editor, I do not hope to have actual inline images. Instead, what makes the most sense to me is to have local file links which I can click to open up an image. This plugin has the same click link feature, but it opens web links in a browser rather than local files. I'm actually not sure on what the most user friendly option would be, but here is one idea.
Hover mouse over local link (e.g. /Users/gus/image.jpg)
Press some hotkey
Image opens up either in preview or the quick look feature in OSX (would be nice since you could close with a simple spacebar)
If necessary there could be some kind of tag for a local link.
I am not experienced with making sublime plugins, but something tells me this could be a quite simple endeavor for a skilled coder. If you can help me out I would greatly appreciate it (and so would anyone trying to use sublime for note taking and even coding at times)

Joomla 2.5.17 Why cannot I see article editor?

I have upgraded my Joomla site from 2.5.7 to 2.5.17. Then I installed Attachments package.
When I click article manager or category manager in order to edit an article or category, I see a page with no textarea, no buttons, no menus.
All the page content is this.
I have tried to install new text editors: nothing changes.
I have tried to select "No editor" for text editing: nothing changes.
Try these different steps to solve your issue:
1) First, check to see if the editor plugin is enabled:
Tools -> Plugin Manager. Locate your Editor and ensure it's enabled.
Also check Global Config and make sure default editor is set.
You could also try disabling the package you installed and see if it works afterwards. If not try to disable all the editors only leaving the default of Joomla and check again.
2) Change back to one of Joomla's installed templates and see if the problem remains.
If not, then it is a problem with your new template. There is a possibility of javascript problems.
Sometimes enabling the system plugin 'System - Mootools Upgrade' will help.
Otherwise check with your template provider for possible help.
3) Also turn php error reporting on as it may be this problem:
http://whatisgon.wordpress.com/2012/05/04/fixing-call-to-undefined-method-stdclassondisplay-error-in-joomla/
4) Lastly, I like to replace Joomla!'s editor with the JCE editor which has solved many issues like these before.
http://www.joomlacontenteditor.net/
You get a page like that when you have a fatal error. You can try disabling the attachments plugin and see if it solves the issue. If not, turn error reporting to maximum or development and see what messages you get.
I disabled PLG_EDITORS-XTD_TOOLTIPS plugin and it my problem solved.

ace x markdown editor not working for joomla 3.2? alternatives?

So I installed the ace x markdown editor plugin for joomla 3.2 because it has a nice feature to insert code snippets in stackoverflow style. So I really need that.
I tried this extension, but it seems to not work. Is there an alternative?
But: There is no documentation, it seems I just have to enable it and hope it works. But it just happens nothing, the normal editor shows up:
No errors, but old editor:
the plugins are installed:
The plugin is supposed to look like this:
The second step you have to do is going to: Global configuration area and select the new editor, then if you save your changes and the old editor still appearing, it could be because your profile has the older one selected... in this case you have to go to your user details page and select the new editor or put into default.

whick one is better fkeditor or ckeditor?

i am running through a problem to choose either fkeditor or ckeditor which one is better than the other in my project. and how can i get the tutorial regarding customization of any one of these editor in php.
Can you name some websites where i could get the help thanks.
CKEditor is formerly known as FCKEditor (the creator was unaware that FCKEditor didn't sound very... professional) - so you'll want CKEditor.
The CKEditor website has a wealth of information - check out the User Guide, Tutorials and How Tos. Also, when you have downloaded the CKEditor file, you'll find some example code in ckeditor/_samples/php which should help.

Resources