Browse Source

ported patch from fidalgo rev 2097

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@557 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 21 years ago
parent
commit
99392b6765
  1. 9
      src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs

9
src/Main/Base/Project/Src/TextEditor/Gui/Dialogs/ExportProjectToHtmlDialog.cs

@ -178,7 +178,14 @@
// //
// string ExportFile(string fileName, string targetPath) // string ExportFile(string fileName, string targetPath)
// { // {
// string targetFile = FileUtility.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2).Replace(Path.DirectorySeparatorChar.ToString(), "") + ".html"; // string targetFile;
// if (fileName.EndsWith(".txt"))
// {
// targetFile = fileUtilityService.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2);
// File.Copy(fileName, targetPath + Path.DirectorySeparatorChar + targetFile);
// return targetFile;
// }
// targetFile = FileUtility.AbsoluteToRelativePath(project.BaseDirectory, fileName).Substring(2).Replace(Path.DirectorySeparatorChar.ToString(), "") + ".html";
// //
// IDocument document = new DocumentFactory().CreateDocument(); // IDocument document = new DocumentFactory().CreateDocument();
// document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName); // document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName);

Loading…
Cancel
Save