all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Sayth Renshaw <flebber.crue@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Best way to find and jump to tags and elements
Date: Tue, 20 Jan 2015 00:25:13 +0000	[thread overview]
Message-ID: <87ppaacn86.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <d1f1b246-771c-41af-a651-1417aed3683c@googlegroups.com> (message from Sayth Renshaw on Sat, 10 Jan 2015 14:43:14 -0800 (PST))

Sayth Renshaw <flebber.crue@gmail.com> writes:
> Using emacs 24.4.
>
> What is the best way to search and jump to tags and elements especially in html and css.
>
> so if I had a div id in my html #chocolate and I want to edit the css associated with this in its separate styles/styles.css file what would be the best way.
>
> Is there a CTRL-P fuzzy match type search option to jump around?

Oleksandr Gavenko already mentioned 'M-s .' there's also 'M-s _' which
prompts you for a symbol in the minibuffer.

The 'etags' program understands HTML.  You can use it to create a tags
file which can locate elements across many files. See the manual on
Tags, 'C-x C-e' the following to get there: (info "(emacs) Tags") .  The
'M-.' command can then be used to navigate between files.

If you're using HTML mode here's another tip.  'C-c TAB' will do a
cheesy "render" of the HTML.  It makes all the HTML tags invisible and
just shows the text; making bits of it bold and italic as
necessary. 'C-c TAB' again undoes this.  In code that has a lot of tags
but little content this can be useful for navigation.  It's not
bulletproof and often shows javascript as though it were content.  It's
useful though, I often move somewhere by doing C-c TAB and using M-{ and
M-} to jump through paragraphs, then I do C-c TAB again.

BR,
Robert Thorpe



      parent reply	other threads:[~2015-01-20  0:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-10 22:43 Best way to find and jump to tags and elements Sayth Renshaw
2015-01-10 23:30 ` Sayth Renshaw
2015-01-11 15:21   ` Oleksandr Gavenko
2015-01-19 11:01 ` Sayth Renshaw
2015-01-20  0:25 ` Robert Thorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppaacn86.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=flebber.crue@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.