Get corresponding lines in LESS editor for VS2013? - less

Is it possible to get some sort of a highlight or other indicator to map the LESS class markup to the generated markup? There are many times where I need to debug a style in Chrome but need to take an extra step to look up the line in LESS in VS. Basically, I need to work backwards. Thanks.

Related

Auto fold code on open file by a certain comment in vscode

Is there any extension available that has the ability to automatically fold possible code fragments like a switch when there is a certain comment in the appropriate line?
I think that one is exactly what you are looking for:
https://marketplace.visualstudio.com/items?itemName=bobmagicii.autofoldyeah
But! I never tried it

VBA word doc - Show different items based on selection

I'm trying to reduce the size of a form, so I want to hide and show sections based on input.
It's not efficient to program in all of the items I need to show,
I've already written more than 100 lines for one page and there are
eighteen pages total. The pages contain a mix of Tables, images,
paragraphs, and ActiveX object (textbox, combobox, etc)
.
I was looking around and there was a hidden method that existed for
tables previously. But I tried it and found out that it doesn't work
for Word-2010. Are there any replacements for this?
My thoughts
Right now the only thing I can think of is putting unique IDs all over the file, when I need to replace one with a table I can search for the UID and get its range then insert the table there. CONS: Believe me, it'll take a week at best. This also doesn't deal with images and leaves annoying UID's in plain sight of the user. I think Any other solution is better than this.
I'm hoping there is an object I can put everything in, then hide it.
Is there a way to do this?

Bullet list types in Migradoc

How can i give user defined ListType using Migradoc. I have found 6 types of Listtypes.
In those Bulletlist3 is the square but i need to give bigger size square so, how can i give that?
AFAIK you cannot use custom bullet list symbols with MigraDoc.
When we needed this, we just added an empty paragraph, used AddFormattedText to add the bullet symbol (we also needed big squares), added a tab, then came the normal text.
Set the paragraph style properly as discussed here:
https://stackoverflow.com/a/9635220/1015447

Photoshop jsx image grid

What I am ultimately trying to do is to create a grid of images for print that are minor variations of the same thing (different text is all). Looking through online resources I was able to create a script that changes the text and exports all of the images necessary (several hundred). What I am trying to do now is to import all of these images into a new photoshop document and lay them all out in a grid and I can't seem to find any examples of this.
Can anyone point me in the right direction to place a file at a specific coordinate (I'm using CS5 and have the design suite so if there is a way in illustrator to do this quickly...)?
Also, I'm open to other ideas on how to do this (even other programs) easily. It's for labels so the positioning on the sheet has to be pretty precise...
The art layer object has a translate() method that takes delta x and y params. You'll need to open each image, copy it to the target document, get its current location (using artLayer.bounds) and do the math to find the deltas to position it where you want it. Your deltas can be in pixels so you'll get plenty of precision.
Check out your 'JavaScript Scripting Reference' pdf in your Adobe install directory for more details.
Ok I'm marking Anna's response as the answer because though I didn't fully test it, it seems like it should work and answers the original question with jsx. However I'm also leaving my final solution in case anyone else runs across this with the same issue and may prefer this method as well.
What I ended up doing instead is using InDesign. I figured out that it has a grid option that lets you import a number of files and place them all in an equal grid in a single command. This is almost exactly what I was looking for, except that it leaves a small border/margin in between the columns and grids and mine were designed to meet exactly.
I couldn't figure out how to make it not have the border (I have very little experience with InDesign, it may be possible). However I was able to select all my images and scale them uniformly to be the correct size, then I just selected each column and dragged it over to snap to the adjacent column and the same with rows...

How can I implement a text parsing/tokenising interface similar to the way Xcode highlights class names?

I am very new to Cocoa and Objective C so please forgive me if this is a dumb or obvious question. I'd be very grateful just for pointers to the right classes to read the documentation for or any existing web resources that will help me figure this out. I am very much willing to do the hard work figuring this out if I can find some suitable resources to point me in the right direction.
I am writing an app that, essentially, will contain a text view into which a user will enter multi-line text. This will then be parsed (I'm thinking of using an NSScanner or, maybe, the ready-made stuff in ParseKit) to extract and tokenise certain words and numerical information which will be stored in a model object.
I think I can figure out the parsing and data-storage stuff. However, I would like the tokenised words and numbers to be highlighted to the user so that they can easily see them, change them and also have a contextual menu (with a disclosure triangle) to perform actions such as ignoring them. Ideally this would look a lot like the way Xcode deals with class names (underlining them with dashed line, giving them a menu etc).
I've had a look at NSTokenField but this seems to be suited most to single-line fields and the big blue tokens are a bit too visually disruptive for what I want. Also, the docs seem to suggest that using the plain text style only allows one token per field so I couldn't mix that with another style to get the effect that I'm after.
I've also had a look at text attachment attributes but I can't quite conceptualise whether they would be the right way to go. So, my questions are:
What is the best way to tokenise only some text within a multi-line text view?
Is it possible to implement a custom visual style for the tokens? Can I do this with existing classes or do I need to create my own?
Watch the WWDC sessions on the Cocoa text system. The class you want to understand is NSLayoutManager.