I'm currently trying to create a template in TextMate. The template is very basic:
<?php
?>
Nothing special. But I want when the template is created, to put the text cursor between the the start and end tag.
I know this can be done with AppleScript, and probably a Macro, and it can probably be done with creating a snippet that executes on creation of the template, but I feel like there should be an easier way.
Any help would be great.
-- Edit --
My complete apologies. A little more googling and I found my answer:
http://henrik.nyh.se/2007/02/snippet-power-templates-in-textmate
Thanks.
Thanks,
Kyle
I was able to find the answer by doing a little bit more Googling.
http://henrik.nyh.se/2007/02/snippet-power-templates-in-textmate
Related
I have trouble making an anchor in Markdown/Visual Studio.
I made something like this:
### Newstuff
* [**Meetings:**](#meetings) blabla
and from there i wanna link down to the Meetings header (on the same page)
### <a id="meetings"></a>Meetings
i also tried:
### <a name="meetings"></a>Meetings
and all kind of variations with closing the tag n stuff.
Standard HTML linking doesn't work either.
Hopefully someone can point me to the right direction I tried everything i found about that topic.
I already had it working once but ... surprise didn't saved it..
I solved it!
The problem was in the URL - i had to write:
[Meetings](/#/about#meetings)
Thank you all!
I have added a styles list with the config.styleSet.add function and now i can add this style list to the CKeditor with the config.stylSet function, but i can't find anything in the manual about how to implement that to a specific editor.
Any ideas?
Thanks!
Sorry that was a dumb question. the simple answer is:
Add stylesSet: 'stylesName'
To that editor configs.
The reason i didn't success with that is that i was mistakenly writing "styleSet" instead of "stylesSet" :~
I asked this question at jquery forum cf: my question, but was asked to come here and look for Oleg.
I've done a lot of research online and tested a bunch of code either mine or from the web, but so far have had no luck. I keep on reading that I need to use the oneditfunc function. As you see in my question at the jquery forum, I added those action buttons in gridComplete. Where do I declare and define the oneditfunc function?
The example at http://www.ok-soft-gmbh.com/jqGrid/ActionButtons.htm does look like what I am looking for, but I can't use the pre-defined 'actions' formatter, I have to use buttons which bear the texts Edit, Save and Cancel.
There is an example at http://www.trirand.com/blog/jqgrid/jqgrid.html# under Row Editing (new) > Custom Edit, which I followed to create mine you've seen in my original question at jquery forum. Unfortunately, those buttons don't toggle.
It just doesn't make sense to display the S(ave) and C(ancel) buttons when the rows are not even in edit mode. So I do want to fix this by toggling them. Any ideas to share? I am sure this is going to help a lot of people as no working examples can be found online. Thank you!
For those who are looking to solve this problem. I have solve it and I have posted my solution at http://forum.jquery.com/topic/jqgrid-inline-editing-buttons .
I'm not able to select text on a page that has a lot of jquery and css stuff going on. I've commented out many of the mousedown event handlers that seem like obvious culprits, but I still haven't found the bug.
The question is... what's the best way to debug this? Is there a better way to debug this than commenting out all event handlers until I find the problem? Is there some sort of event inspector I can use?
FYI, the page is:
http://www.musiclessons.com/youtube/#6NxVucKQHG8 - you can't select any text below the video
there it is:
$('#youtube-list').disableSelection ();
found in the following file, loaded by your page:
http://musiclessons.com/youtube/js/youtube.js?v=9
and here's what it's about:
http://forum.jquery.com/topic/disableselection
as for your question on an efficient way of debugging this: i don't really know. was looking through the css files for some 'user-select' property (see Is there a way to make text unselectable on an HTML page?), then read some of the js, before stumbling upon the above.
I am not sure why you need to select the text to debug, perhaps you can update the question with that.
For now, if you need to copy the text or something like that, you can always inspect with firebug or whatnot and select the text from there.
I'm having problems with something which seems like an easy task, and most probably a stupid question. It will probably be my all time low experience in programming but I would really appreciate any help!
I'm using Galleriffic to display my portfolio site, and I am looking for a way to directly link to an image+description not being the first in the gallery. I would like it to link from other webpages, or from plain text/pdf documents.
In short, I would like it to link to a webaddress of slide 5 with something like:
Slide 5
but doing it this way obviously doesn't work.
Although others have tried to explain:
https://stackoverflow.com/a/7910501/1074297
jquery cycle link from external page to specific slide?
I can not seem to accomplish it, and it does not help at all that I am not a programmer.
not sure if it is too late, have been search the solutions for whole day, final found out the example 4 in the official website actually make the #link show on the address....so you can actually link the specific image ('slide'') from external page...amazing!!!!!
check this out
http://www.twospy.com/galleriffic/example-4.html#5
You can find the script after all the or just before ... and place it to your template...it works well for me, hope it helps, good luck