Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92793650
PhabricatorEditorSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 23, 18:42
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Nov 25, 18:42 (2 d)
Engine
blob
Format
Raw Data
Handle
22499870
Attached To
rPH Phabricator
PhabricatorEditorSetting.php
View Options
<?php
final
class
PhabricatorEditorSetting
extends
PhabricatorStringSetting
{
const
SETTINGKEY
=
'editor'
;
public
function
getSettingName
()
{
return
pht
(
'Editor Link'
);
}
protected
function
getControlInstructions
()
{
return
pht
(
"Many text editors can be configured as URI handlers for special "
.
"protocols like `editor://`. If you have such an editor, Phabricator "
.
"can generate links that you can click to open files locally."
.
"
\n\n
"
.
"These special variables are supported:"
.
"
\n\n
"
.
"| Value | Replaced With |
\n
"
.
"|-------|---------------|
\n
"
.
"| `%%f` | Filename |
\n
"
.
"| `%%l` | Line Number |
\n
"
.
"| `%%r` | Repository Callsign |
\n
"
.
"| `%%%%` | Literal `%%` |
\n
"
.
"
\n\n
"
.
"For complete instructions on editor configuration, "
.
"see **[[ %s | %s ]]**."
,
PhabricatorEnv
::
getDoclink
(
'User Guide: Configuring an External Editor'
),
pht
(
'User Guide: Configuring an External Editor'
));
}
}
Event Timeline
Log In to Comment