Is there a way to pass a parameter to sublime text3 insert snippet using tab trigger? - sublimetext

Good day.. There is this thing I would like to do in snippet (Sublime Text 3), something like this.
<tabTrigger>CHOICE+VARIABLE</tabTrigger>
so that when I trigger something like
CHOICE5
it would create a content like this.
...YOU TRIGGERED CHOICE 5...
Something like that,
I hope someone could help me with this. thanks in advance.

Related

How do I use figure tag of HTML with text around it in React JS

I want to add text around the image like this. Plzz Guide me that how can I do that. Thank you :)
I tried the figure tag but couldn't get the result that what I am trying to do.

How to display conversation text in Laravel

I want to display text like below, how can I store it in database, should I have put by hand like <p>, <br /> right? It will be take a lot of time, there are another way to do that, thank you!
Tess: Thank you.
Ravi: Are you doing anything special?
Tess: Well, I’m going out for dinner with some friends tonight and then we might go to a club. I’m not really sure.
Ravi: Sounds good. Where are you going to eat? Is it somewhere a bit special or …
You can use CKEditor for this. It will give you content in HTML format. You just need to write as a document editor. for example in the StackOverflow question and answer section, you are can design the document as bold, italic, hyperlink, etc.
There are lots of WYSIWYG editors, for example, TinyMCE, Summernote, etc.

Backend Product Info Grid Modificaiton

I want to create a new text field right under the SKU text field in the Product Information > General tab and populate it with the product's attribute set value. What I want can be seen in the picture below.
Unfortunately, for the past 4 hours I have been trying to locate the file that includes the code which produces the specific layout but so far I had no luck. I 'd be really grateful if anyone could give me a heads up.
Thank you for your time!
Enable backend path hints to find out which file it is. You can do it this way.
http://www.classyllama.com/development/magento-development/enable-templateblock-hints-in-admin-panel
Please note this is basically hacking. A better way to do it would be to follow something like this
http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/
It's up to you, speed or do it the right way. Goodluck

Getting a post excerpt in DocPad

This is what I'm currently using to "grab" my posts: https://gist.github.com/Greduan/5977871
And then I do a for loop .toJSON() etc.
How can I make this grab an excerpt of the post and not all of the content? Cause I can just use #content but that'll output the entire post.
How can I make it have for example an excerpt with something like 500 characters then "..." and then a "Continue reading..." link or something along these lines.
I was thinking maybe using something like this:
#content.slice(0,500)
Or something like that. Would that work?
Thanks for your help. :)
Take a look at the answers here: Show only partial blog post in Docpad, with "Read More" link - they all involve some work, but the top one would probably do what you want.

jquery - can't select text on complex page - how do I debug this?

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.

Resources