Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I tend to do it in sublime with a regex:

Find/replace all:

  ^(.*)$\n
with

  "$1",


That also works well in Emacs:

    C-M-% runs the command query-replace-regexp (found in global-map),
    which is an interactive compiled Lisp function in ‘replace.el’.

    It is bound to C-M-%, <menu-bar> <edit> <replace>
    <query-replace-regexp>.

    (query-replace-regexp REGEXP TO-STRING &optional DELIMITED START END
    BACKWARD REGION-NONCONTIGUOUS-P)

    Replace some things after point matching REGEXP with TO-STRING.
    As each match is found, the user must type a character saying
    what to do with it.  For directions, type <help> at that time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: