diff --git a/conf/dlgeditor.cpp b/conf/dlgeditor.cpp --- a/conf/dlgeditor.cpp +++ b/conf/dlgeditor.cpp @@ -31,6 +31,7 @@ m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "SciTE" ), 3 ); m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Emacs client" ), 4 ); m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Lyx client" ), 5 ); + m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "TeXstudio" ), 6 ); m_dlg->kcfg_ExternalEditorCommand->setWhatsThis( i18nc( "@info:whatsthis", "Set the command of a custom text editor to be launched.
\n" diff --git a/conf/okular_core.kcfg b/conf/okular_core.kcfg --- a/conf/okular_core.kcfg +++ b/conf/okular_core.kcfg @@ -73,6 +73,7 @@ + diff --git a/core/texteditors_p.h b/core/texteditors_p.h --- a/core/texteditors_p.h +++ b/core/texteditors_p.h @@ -31,6 +31,8 @@ QStringLiteral( "emacsclient -a emacs --no-wait +%l %f" ) ); editors.insert( SettingsCore::EnumExternalEditor::Lyxclient, QStringLiteral( "lyxclient -g %f %l" ) ); + editors.insert( SettingsCore::EnumExternalEditor::Texstudio, + QStringLiteral( "texstudio --line %l" ) ); return editors; } diff --git a/doc/index.docbook b/doc/index.docbook --- a/doc/index.docbook +++ b/doc/index.docbook @@ -2399,7 +2399,7 @@ This is the case when the document has references to the various points (usually row and column number) of sources it was generated from. The &DVI; format supports natively the addition of the information about the sources the LaTeX document was generated from. A similar system exists for &PDF; documents, called pdfsync, which stores these extra information in an external file named after the &PDF; file itself (for example mydocument.pdfsync for mydocument.pdf). - &okular; ships with preconfigured settings for the following editors: &kate;, Kile, SciTE, &Emacs; client, and LyX client. + &okular; ships with preconfigured settings for the following editors: &kate;, Kile, SciTE, &Emacs; client, LyX client, and TeXstudio.