{% extends "help/layout.html" %} {% block help_body %}

{% trans %}Scripts and Editor Integration{% endtrans %}

{% trans %} For some popular editors lodgeit integration scripts/plugins exist. Additionally there is also a small script that allows pasting from the command line.{% endtrans %}

{% trans %}Command Line Script{% endtrans %}

{% trans %}The usage is pretty simple, to paste a file use the following command{% endtrans %}

{% trans %}lodgeit.py /path/to/file{% endtrans %}

{% trans %} This will use various guessing methods to get the correct language of the file. If all guessing fails it falls back to a normal text paste. You can also provide the language yourself.{% endtrans %}

{% trans %}lodgeit.py -l LANGUAGE /path/to/file{% endtrans %}

{% trans %}For a list of supported languages use the following command:{% endtrans %}

{% trans %}lodgeit.py --languages{% endtrans %}

{% trans %}If no file is given it will read from the standard input stream.{% endtrans %}

{% trans %}If multiple files are given, they will be put into one paste using the "multi-file" formatter.{% endtrans %}

{% trans %}Download:{% endtrans %} lodgeit.py

{% trans %}Vim Support{% endtrans %}

{% trans %} If Vim is your editor you can paste and download pastes directly from within Vim.{% endtrans %}

{% trans %} All you have to do to paste the current range or whole buffer to lodgeit is executing :Lodgeit. If you want you can map this command to a mapping like ctrl+p by adding this to your vimrc:{% endtrans %}

map ^P :Lodgeit<CR>

{% trans %}(^P is entered using ctrl + v, ctrl + in vim){% endtrans %}

{% trans %} If you want to reply to a paste from within Vim you can call :Lodgeit PASTE_URL or :Lodgeit #PASTE_ID and load the paste into a new tab. After modifing it you can push the new version to the server using :Lodgeit.{% endtrans %}

{% trans %}Download:{% endtrans %} lodgeit.vim

{% trans %}Emacs Support{% endtrans %}

{% trans %} You need a working installation of Pymacs. For Linux users, many distributions already include a package; otherwise, refer to the Pymacs documentation for help. If Pymacs is working, you just need to put paste.py into a directory where Pymacs can find it (see the variable pymacs-load-path), and add the line (pymacs-load "paste") to your .emacs file. If you want a Pastebin menu in your menu bar, you also need to add the line (paste-menu).{% endtrans %}

{% trans %}Detailed usage instructions are located at on the project page{% endtrans %}.

{% trans %}Download:{% endtrans %} paste.py

{% endblock %}