Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging a tab away from main window, to create new the color formatting is gone #3451

Closed
nivs1978 opened this issue Jun 28, 2017 · 5 comments
Assignees
Labels
accepted udl Everything related to User Defined Language

Comments

@nivs1978
Copy link

nivs1978 commented Jun 28, 2017

#

Description of the Issue

When I drag a tab away from the main window to create a new, the color formatting of the text disappears.
This only happen to file types added in the userDefineLang.xml file.

Steps to Reproduce the Issue

  1. Add a userDefinedLang.xml file to the %appdata%\Notepad++\ folder. Example use the one provided for MapBasic (*,mb files) here: http://www.twiav.nl/php/mapbasic.php
  2. Open a few file, where one is an .mb file.
  3. Drag one of the tabs away from the main window to create a new MapBasic window. All color formatting is gone.

Expected Behavior

I expect to see the same color formatting as I do in the main window.

Actual Behavior

The text of the .mb file is displayed in black and white.

Debug Information

Notepad++ v7.4.1 (32-bit)
Build time : May 18 2017 - 02:00:37
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll SpellChecker.dll XMLTools.dll

main_window
new_window

Save this as test.mb to check color formatting:
'**************************************************************************
' Include files and Define statements

Include "mapbasic.def" 'standard defines

Include "auto_lib.def" 'include this file to access the AUTO_LIB library
'The actual AUTO_LIB routines are in AUTO_LIB.MB[O]
Include "menu.def"
Include "icons.def"

Include "Library\Defaults.def"
Include "Library\ProgramInfo.def"
Include "Library\DEBUGLib.def"
Include "Library\ERRORLib.def"
Include "Library\MAPPERLib.def"
Include "Library\RIBBONLib.def"
Include "Library\TABLELib.def"

@BreakTheWind
Copy link

26 days and no resolution. I have the same problem. What gives? I just installed notepad++ and I have no added plugins.

Note that this happens only with user-defined languages.
Maybe a workaround would add the language to the default ones?

@ArkadiuszMichalski
Copy link
Contributor

ArkadiuszMichalski commented Oct 22, 2020

Still valid in latest Notepad++ 7.9. STR:

  1. Download test.txt and change .txt extension to .md (NPP has in-build UDL for markdown).
  2. Run Notepepad++ and open test.md.
  3. Move/Open tab with test.md file in new instance, for example by drag this tab outside NPP main window or select proper commands from tab's context menu.

@bReathl3sS
Copy link

Same as @ArkadiuszMichalski - still not working in 7.9.1 64-bit Win10
Possible duplicate of #4769 #5589

@donho donho self-assigned this Jan 9, 2021
@pryrt
Copy link
Contributor

pryrt commented Mar 1, 2021

user in forum reported it: https://community.notepad-plus-plus.org/topic/20812/language-style-changes-when-tab-view-is-dragged-out-of-notepad

I confirmed with fresh v7.9.3 portable that the problem still exists:

  1. create new file with some markdown in it
  2. Language > Markdown (preinstalled),
  3. save as blah.md
  4. verify the status bar says "user defined language file - markdown (preinstalled)"
    image
  5. right click on the tab, Move to New Instance
  6. now it shows
    image

Debug Info:

Notepad++ v7.9.3   (64-bit)
Build time : Feb  8 2021 - 18:16:35
Path : C:\usr\local\apps\npp\npp.7.9.3.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit) 
OS Version : 1903
OS Build : 18362.1256
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll 

@ArkadiuszMichalski ArkadiuszMichalski added the udl Everything related to User Defined Language label Mar 1, 2021
@pryrt
Copy link
Contributor

pryrt commented Mar 1, 2021

Looking at #4883, I was surprised when the user there claimed the problem didn't exist in 7.9RC -- when I do a fresh unzip of the released v7.9 (I don't have a copy of the RC any more, and after release the RC URL at http://download.notepad-plus-plus.org/repository/7.x/7.9.RC/ doesn't work). But when I try with the released v7.9 portable, I get the same bad results -> doing Move to New Instance changed the markdown file from User Defined Language file - Markdown (preinstalled) as it should be to User Defined Language file (ie, the default Language > User-defined)

Notepad++ v7.9   (64-bit)
Build time : Sep 22 2020 - 03:19:04
Path : C:\usr\local\apps\npp\npp.7.9.portable.x64\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS Name : Windows 10 Enterprise (64-bit) 
OS Version : 1903
OS Build : 18362.1256
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll 

@donho donho added the accepted label Mar 30, 2021
@donho donho closed this as completed in 5bc3ccf Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted udl Everything related to User Defined Language
Projects
None yet
Development

No branches or pull requests

6 participants