Highlighted

[DW 2019 macOS] How to create a shortcut for "markup as <code>...</code>"?

Participant ,
Dec 12, 2018

Copy link to clipboard

Copied

In DW 2014 it was possible to markup a selected text e.g. "lorem" via a command/shortcut to "<code>lorem</code>".

It seems, that this in not possible anymore in DW 2019.

I need the function a lot, so I'm looking for a solution.

Do you have an idea? Is there an extension for that?

Can you add the function with adding a special config file?

Thanks.

Views

392

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

[DW 2019 macOS] How to create a shortcut for "markup as <code>...</code>"?

Participant ,
Dec 12, 2018

Copy link to clipboard

Copied

In DW 2014 it was possible to markup a selected text e.g. "lorem" via a command/shortcut to "<code>lorem</code>".

It seems, that this in not possible anymore in DW 2019.

I need the function a lot, so I'm looking for a solution.

Do you have an idea? Is there an extension for that?

Can you add the function with adding a special config file?

Thanks.

Views

393

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 12, 2018 0
Adobe Community Professional ,
Dec 12, 2018

Copy link to clipboard

Copied

Using the built in Emmet functionality, you can type "lorem" and hit Tab to get a sentence of Lorem Ipsum. Alternatively, you can type "lorem" and a number, for example "lorem200" and hit Tab to get 200 words of Lorem Ipsum text where you place the cursor.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0
Adobe Community Professional ,
Dec 12, 2018

Copy link to clipboard

Copied

Looks like I misread your post.

To wrap a selection of text in a set of tags in code view, make the selection and hit Ctrl+T.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0
Participant ,
Dec 12, 2018

Copy link to clipboard

Copied

Jon, you missunderstand my question. I should have expressed my issue more precisely, sorry.

I really look for a true shortcut which does not need to enter anymore code.

Like the command "Menu Edit > Text > Bold".

Probably that need's an extension or a script?

Is it possible to add functionality to DW in that way?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0
Adobe Community Professional ,
Dec 12, 2018

Copy link to clipboard

Copied

It used to be a very, very simple process using the Snippets Window.

Prior to CC 2017, you could create a wrapping Snippet with any code you liked, meant to be added in front of and behind the selection. You could also then set a keyboard shortcut to add the code.

That changed when they introduced Snippet Keywords and removed the majority of links to Snippets in Keyboard Shortcuts. The old Wrapping Snippets are also gone entirely from the program now. There was a time where, if you brought your Snippets over from the older version of DW, they would still wrap (though the shortcuts were still gone, requiring a double click of the Snippet in the Snippets Window) but that has also since been removed.

The fastest way to wrap a selection a set of tags, right now in CC2019, would be to...

1. highlight the selection
2. Hit Ctrl + T
3. Start typing the tag until DW's hinting shows the right one
4. hit Enter twice

I still use CC 2015 for production work, in large part because of the scaling down of the Snippets Window's functionality.


There's no way I know of to wrap more than a simple tagset around a selection without multiple Snippets and keystrokes being used, in CC 2019.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 1
Participant ,
Dec 12, 2018

Copy link to clipboard

Copied

Thanks for your answer Jon.

When there's really no way to markup a selection faster than with those 4 or even more steps (depends on the tag name), than I have to switch back from DW 2019 to DW 2014.

Without single step shortcuts for such daily tasks I don't like to use DW.

And we only talked about the way of markup selected text.

The other usecase is a way without selecting while typing.

The result should be e.g.:

lorem <code> ipsum</code> dolor.

In DW 2014 with the shortcuts it works like that:

1 type lorem

2 type the shortcut for "code" (which starts including text inside the tag code)

3 type ipsum

4 type the shortcut for "code" (which stops including text inside the tag code)

It makes me really sad and angry, that such basic functions of DW are not possible anymore

Back to my question about extensions in general:
Is there no way to add any functionality to DW 2019?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0
Adobe Community Professional ,
Dec 12, 2018

Copy link to clipboard

Copied

You could try using the information available here: Adobe Dreamweaver developer API for Extension Development

I haven't looked at it in a while, but I haven't heard much good about the info presented there. From what I understand, it hasn't been updated since CS5.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0
Adobe Community Professional ,
Dec 12, 2018

Copy link to clipboard

Copied

Maybe I'm missing something but why can't you create a custom Snippet with this.

<p>Lorem ipsum <code> dolor sit amet </code>consectetur adipisicing elit. </p>

Assign a shortcut of cd (+ tab key).

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 1
Participant ,
Dec 12, 2018

Copy link to clipboard

Copied

Thanks for your idea Nancy.

But "lorem" and "ipsum" are just placeholder.

I want to markup arbitrary content with the inline element "code".

And of course with other inline or blocklevel elements too.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 0