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

Pre-defined UDL number prefix and suffix not fully working. #12355

Open
swgmike opened this issue Oct 18, 2022 · 0 comments
Open

Pre-defined UDL number prefix and suffix not fully working. #12355

swgmike opened this issue Oct 18, 2022 · 0 comments
Labels
udl Everything related to User Defined Language

Comments

@swgmike
Copy link

swgmike commented Oct 18, 2022

Description of the Issue

a). If prefix1 is set to i.e… D O B or one of these letters at a time, it will work for the case of all these letters in any combination for the first two letters; however, for the last letter specified it will not work regardless which one is specified if there is no space after it such as "B " (but without the quotes.) Moreover if one defines one letter at a time it will work only if there is a space after it.

For suffix 2 it will not work regardless of the D O B letter ordering for the letters D and B, but works for O only. Thus, if each of these letters is specified one at a time, only the O will work.
Note: For my DXL language, the binary is 0b, and the octal is 0 (starts with zero)

So for both these cases notepad has a software bug.

b). If suffix 1 specifies 'H and one wants to colorize char codes i.e. ‘A’ as mentioned above earlier, it will colorize everything to include 'H trying to find the closing quote. So notepad UDL appears to have a bug since it will not treat the end of the line as the terminator for this special case nor entering ((EOL)) in suffix 1 work. note: This situation is being caused by trying to color code delimited strings and character values. Thus in to color code strings delimited by double quote ", I've set open to " Escape to \ and close to ". This appears to work; however to color code character values such as 'A'. I've set a delimiter to open ' Escape no value and close '. It will color code any character values found, but will cause the suffix 1 for 'H to not colorize only to the ((EOL)) or CRNL. Thus notepad will need to stop colorizing for this special case so that character values such as 'A' can be done.

c). As for coloring real #'s with exponents, I’ve discovered that adding E e to the suffix 1 field will work and even colorize the number between the decimal point and the E or e. Thus, update website UDL to help others be able to colorize real numbers using exponents.

Steps to Reproduce the Issue

  1. See description of the issue which outlines the steps to reproduce the problem.

Expected Behavior

a. See description of issue above.

Actual Behavior

a. See description of issue above.
b. First image shows the test #'s colorized but not color for those not working on the left with the delimiter 1/2 settings
and second image shows the same colorized numbers on the left but with the number settings.

Debug Information

Notepad++ v8.4.6 (64-bit)
Build time : Sep 25 2022 - 19:51:39
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 8.1 (64-bit)
OS Build : 9600.20625
Current ANSI codepage : 1252
Plugins :
CodeAlignmentNpp (14.1.107)
ComparePlugin (2.0.2)
HexEditor (0.9.12)
JSFunctionViewer (1.1)
JsMapParser.NppPlugin (4.2)
JSMinNPP (1.2205)
mimeTools (2.8)
nppAutoDetectIndent (2.3)
NppConverter (4.4)
NppExport (0.4)
NppJavaPlugin (0.4)
NPPJSONViewer (1.41)
NppXmlTreeviewPlugin (2)
Python Indent (1.0.0.4)
PythonScript (2)
XMLTools (3.1.1.13)

image
image

@ArkadiuszMichalski ArkadiuszMichalski added the udl Everything related to User Defined Language label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
udl Everything related to User Defined Language
Projects
None yet
Development

No branches or pull requests

2 participants