|
|
@ -22,7 +22,7 @@ namespace ICSharpCode.SharpDevelop.Commands |
|
|
|
public class SharpDevelopStringTagProvider : IStringTagProvider |
|
|
|
public class SharpDevelopStringTagProvider : IStringTagProvider |
|
|
|
{ |
|
|
|
{ |
|
|
|
readonly static string[] tags = new string[] { |
|
|
|
readonly static string[] tags = new string[] { |
|
|
|
"ItemPath", "ItemDir", "ItemFilename", "ItemExt", |
|
|
|
"ItemPath", "ItemDir", "ItemFilename", "ItemExt", "ItemNameNoExt", |
|
|
|
"CurLine", "CurCol", "CurText", |
|
|
|
"CurLine", "CurCol", "CurText", |
|
|
|
"TargetPath", "TargetDir", "TargetName", "TargetExt", |
|
|
|
"TargetPath", "TargetDir", "TargetName", "TargetExt", |
|
|
|
"CurrentProjectName", |
|
|
|
"CurrentProjectName", |
|
|
@ -93,6 +93,11 @@ namespace ICSharpCode.SharpDevelop.Commands |
|
|
|
return Path.GetExtension(GetCurrentItemPath()) ?? string.Empty; |
|
|
|
return Path.GetExtension(GetCurrentItemPath()) ?? string.Empty; |
|
|
|
} catch (Exception) {} |
|
|
|
} catch (Exception) {} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case "ITEMNAMENOEXT": |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
return Path.GetFileNameWithoutExtension(GetCurrentItemPath()) ?? string.Empty; |
|
|
|
|
|
|
|
} catch (Exception) {} |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case "CURLINE": |
|
|
|
case "CURLINE": |
|
|
|
{ |
|
|
|
{ |
|
|
|