Information prompting method, information prompting device, electronic equipment, medium and product
By detecting and responding to specific language text information in the field of user input in the webpage application software, the corresponding prompt information is provided to solve the lack of support for specific language support for field application software in the webpage application software, reducing the degree of language abstraction and expanding the scope of application.
Patent Information
- Application Number
- CN202411392138.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-24
AI Technical Summary
The lack of support for domain-specific languages in web application software leads to a high degree of language abstraction in domain-specific languages and limited scope of application.
By obtaining the text information entered by the user on the webpage application software page, and using the mounted editor to detect the text information of the text information in the target field, in response to the detection results on the webpage application software page to display the text information obtained by the editor on the webpage application software page Corresponding prompt information.
It has reduced the degree of language abstraction of specific languages in the field, expanded the scope of application of specific languages in the field, enhanced the user experience of the field, and improved product competitiveness.
Smart Images

Figure CN119356654A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to an information prompting method, an information prompting device, an electronic device, a medium and a product. Background Art
[0002] A Domain-Specific Language (DSL) is a programming language designed specifically to solve problems in a specific domain. Unlike a general-purpose language (GPL), a DSL usually focuses on a specific problem domain or task, providing customized syntax and functions to make problem solving in that domain more efficient and intuitive.
[0003] Currently, there is a lack of support for domain-specific languages in web (World Wide Web, web) application software. Summary of the invention
[0004] Embodiments of the present application provide an information prompting method, an information prompting device, an electronic device, a medium, and a product.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] An information prompting method, the method comprising:
[0007] Obtain text information entered by the user on the page of the web application software;
[0008] Using the editor mounted on the web application software to detect whether the text information is text information in a target domain specific language;
[0009] In response to detecting that the text information is text information in the target domain specific language, prompt information corresponding to the text information obtained by the editor is displayed on the page of the web application software.
[0010] In the above solution, in response to detecting that the text information is text information in the target domain specific language, displaying prompt information corresponding to the text information obtained by the editor on the page of the web application software includes:
[0011] In response to detecting that the text information is text information in the target domain specific language, using the editor to obtain identification information of the text information in the target domain specific language, and searching for a code prompter corresponding to the identification information;
[0012] Using the editor to obtain the prompt information found by the code prompter;
[0013] The prompt information is displayed on a page of the web application software.
[0014] In the above solution, the step of using the editor to obtain the prompt information found by the code prompter includes:
[0015] Using the editor to input the text information into the code prompter;
[0016] The editor is used to obtain the prompt information found by the code prompter according to a preset code prompt table of the target domain specific language.
[0017] In the above solution, the step of obtaining text information input by a user on a page of a web application software includes:
[0018] It is detected that the input tool is hovering at a position related to the text information displayed on the page, and the text information input by the user is acquired.
[0019] In the above scheme, the editor mounted by the web application software is used to detect whether the text information is text information in the target domain specific language, including:
[0020] Invoking a target thread independent of the main program of the web application software, and using the editor to detect whether the text information is text information in the target domain specific language;
[0021] In the above solution, in response to detecting that the text information is text information in a target domain specific language, prompt information corresponding to the text information obtained by the editor is displayed on the page of the web application software, including:
[0022] The target thread is called, and in response to detecting that the text information is text information in the target domain-specific language, the prompt information is displayed on the page.
[0023] In the above solution, the prompt information includes annotation text and / or usage help information corresponding to the text information.
[0024] An information prompting device, comprising:
[0025] An acquisition module is used to acquire text information input by a user on a page of a web application software;
[0026] A processing module, used for detecting whether the text information is text information in a target domain specific language by using an editor mounted on the web application software;
[0027] The processing module is used to control the display module to display prompt information corresponding to the text information obtained by the editor on the page of the web application software in response to detecting that the text information is text information in the target domain specific language.
[0028] An electronic device comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0029] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the above methods.
[0030] A storage medium stores a computer program, which implements the steps of any one of the above methods when executed by a processor.
[0031] A computer product comprises a computer program, wherein when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
[0032] The information prompt method, information prompt device, electronic device, medium and product provided by the present application, wherein the information prompt method comprises: obtaining text information input by a user on a page of a web application software; using an editor mounted on the web application software to detect whether the text information is text information in a target domain-specific language; in response to detecting that the text information is text information in a target domain-specific language, displaying prompt information corresponding to the text information obtained by the editor on the page of the web application software; the present application solves the problem of lack of support for domain-specific languages in web application software, reduces the language abstraction level of domain-specific languages, and expands the scope of application of domain-specific languages. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A flowchart of an information prompting method provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of a multi-stage implementation of a domain-specific language code prompt provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a code prompt page provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of the structure of an information prompting method and device provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0039] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0040] The terms "first / second / third" involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0042] The embodiment of the present application provides an information prompt method, referring to Figure 1 As shown, the method comprises the following steps:
[0043] Step S101: obtaining text information input by a user on a page of a web application software.
[0044] In actual application, the execution subject of this embodiment can be an electronic device, which has functions such as data processing, data communication and program running. Usually, the operation of each component in the electronic device can be driven by a core controller / processor, so the execution subject of this embodiment can also be a controller / processor in the electronic device. Among them, the text information includes text content displayed to the user on the web page through HyperText Markup Language (HTML) or other web page technologies (such as CSS, JavaScript, etc.). These text contents can be the title, paragraph, list item, link, form element (such as input box, text on button), description of the picture (alt text), and any other information presented in text form. User input includes but is not limited to selecting text information and entering text information through input tools (such as mouse, keyboard, etc.).
[0045] Step S102: using the editor mounted on the web application software to detect whether the text information is text information in the target domain specific language.
[0046] In practical applications, a domain-specific language is a computer language built to express a clearly defined specific domain. A domain-specific language is designed with grammatical notations and conceptual abstractions that fit its semantic model for a specific problem domain. This application does not specifically limit the domains involved in domain-specific languages.
[0047] In actual application, editors include code editors, text editors, and rich text editors. Among them, the code editor can be Monaco Editor, which has the following features: elegant and neat interface, excellent performance, out-of-the-box use, and strong stability. The editor is a component that is easy to embed into any web page.
[0048] In actual application, this application mounts the editor at the corresponding position of the web application software. In this way, after starting the web application software, the editor mounted by the web application software can be used to detect the text information input by the user to determine whether the user has entered a domain-specific language.
[0049] Step S103: In response to detecting that the text information is text information in the target domain specific language, displaying prompt information corresponding to the text information obtained by the editor on the page of the web application software.
[0050] In actual application, when it is detected that the user has entered a domain-specific language, in response to this detection result, that is, the text information entered by the user belongs to the text information of the target domain-specific language, prompt information corresponding to the text information obtained by the editor is displayed on the web page. The prompt information is used to provide a prompt of the associated code for the text information entered by the user, thereby reducing the language abstraction level of the domain-specific language and expanding the scope of application of the domain-specific language.
[0051] In some embodiments of the present application, the prompt information includes annotation text and / or usage help information corresponding to the text information. That is, when it is determined that the text information input by the user is text information in a target domain-specific language, the present application can provide annotation text and / or usage help information of the associated code for the text information input by the user, provide real-time user input feedback, and intelligent auxiliary functions of code prompts, to help developers lower the threshold for use, improve writing efficiency, reduce errors, and optimize the programming experience.
[0052] The information prompt method provided by the present application obtains text information input by a user on a page of a web application software; uses an editor mounted on the web application software to detect whether the text information is text information in a target domain-specific language; in response to detecting that the text information is text information in a target domain-specific language, displays prompt information corresponding to the text information obtained by the editor on the page of the web application software; it can be seen that the present application is able to determine whether the user has entered a domain-specific language, and if the user has entered a specific language, provides prompt information of the associated code based on the text information entered by the user. In this way, in view of the fact that domain-specific speech has a high level of abstraction, the present application reduces the degree of language abstraction of domain-specific languages, expands the scope of application of domain-specific languages, enhances domain user experience, and improves product competitiveness.
[0053] In some embodiments of the present application, step S102 uses an editor mounted on the web application software to detect whether the text information is text information in a target domain specific language, including: calling a target thread independent of the main program of the web application software, and using the editor to detect whether the text information is text information in a target domain specific language.
[0054] In some embodiments of the present application, step S103 displays prompt information corresponding to the text information obtained by the editor on the page of the web application software in response to detecting that the text information is text information in a target domain-specific language, including: calling the target thread, and displaying prompt information on the page in response to detecting that the text information is text information in a target domain-specific language.
[0055] In actual application, the target thread can be a worker thread created for a domain-specific language. This application places the code prompt in the worker to run, and after the run is completed, the result is returned to the main thread of the Web application software. The worker thread is independent of the main thread and will not affect the page performance of the Web application software, thereby improving the efficiency of information prompts.
[0056] In some embodiments of the present application, in response to detecting that the text information is text information in a target domain specific language, step S103 displays prompt information corresponding to the text information obtained by the editor on a page of the web application software, including:
[0057] In response to detecting that the text information is text information in a target domain specific language, using an editor to obtain identification information of the text information in the target domain specific language, and searching for a code prompter corresponding to the identification information;
[0058] Use the editor to obtain the prompt information found by the code prompter;
[0059] Displays prompt information on the web application page.
[0060] In actual application, it is detected that the text information input by the user is text information in the target domain specific language, and the editor is used to obtain the identification information (Identity document, ID) of the text information in the target domain specific language, and find the code prompter (Hover Provider) corresponding to the ID; after the Hover Provider finds the prompt information corresponding to the text information, it notifies the editor to display it on the page.
[0061] In some embodiments of the present application, the prompt information found by the code prompter obtained by using the editor includes:
[0062] Use the editor to enter text information into the code prompter;
[0063] The editor is used to obtain the prompt information found by the code prompter according to the preset code prompt table of the target domain specific language.
[0064] In actual application, the code prompter implements the code prompt function according to a preset code prompt table. Regarding the preset code prompt table, key is the code to be prompted, and desc is the HTML code injected into the prompt box.
[0065] In some embodiments of the present application, step S101 obtains text information input by a user on a page of a web application software, including: detecting that an input tool is hovering at a relevant position of the text information displayed on the page, and obtaining the text information input by the user.
[0066] In actual application, input tools include but are not limited to mice. When the mouse is detected hovering over the relevant position of the text information displayed on the page, the editor triggers a mouse hover event, and the worker returns the text at the hovering position to obtain the text information input by the user; further, the provider queries the preset usage instructions corresponding to the text and returns them, which are then displayed by the editor.
[0067] In a possible implementation of domain specific language code hinting scenario, see Figure 2 As shown in the figure, the implementation of domain-specific language code hints is described in three stages:
[0068] Phase 1: Complete editor setup and start domain-specific language design.
[0069] In this phase, Monaco Editor is used as the code editing container, the initial configuration of Monaco Editor is completed, and the build process is integrated. Monaco Editor is a web-based code editor developed by Microsoft. It provides an editing experience similar to Visual Studio Code. It is designed as a component that is easy to embed in any web page.
[0070] In phase 1, you can use the following code to initialize the editor, set up the editor basic worker, and register a code hinter for the domain-specific language.
[0071]
[0072] From the above, we can see that the first stage is to initialize the editor and register the code hint worker for the domain-specific language, where id is the id of the preset domain-specific language, and Hover Provider is the provider of the code hint. When the user uses a domain-specific language in the editor and triggers a code hint event, the editor will use this id to find the corresponding code hinter. The code hinter searches for the hint word to be prompted through the hovered text, and notifies the editor to display it on the interface when the relevant hint is found.
[0073] Phase 2: Complete the domain-specific language design and mount it on the web application software page.
[0074] In this stage, we complete the lexical analysis of the domain-specific language, compile a list of keywords, and organize annotations and usage help for the corresponding keywords.
[0075] In this stage, the code editor imports the corresponding code prompt rules of the domain-specific language. Among them, the code prompt rules first depend on which words or functions of the domain-specific language the application wants to prompt and the content of these word prompts.
[0076] Taking JavaScript as an example, suppose this application sets a domain-specific language compatible with JavaScript syntax: console.log('hello'); if you want "console" and "log" to display specific prompts respectively, you can configure a table:
[0077]
[0078] In this way, when the mouse hovers over these two words, the editor will prompt different texts.
[0079] In the second stage, the code prompter implementation and the design of the code prompt preset table can be completed through the following code.
[0080]
[0081]
[0082] From the above, we can see that stage 2 is the specific implementation of code hints, namely HoverProvider. When the editor triggers a mouse hover event, the worker returns the text at the hover location, and the provider queries the preset usage instructions corresponding to the text and returns them, which are then displayed by the editor.
[0083] Phase 3: Complete web application software interface coding, function debugging and operation.
[0084] In this stage, mount the code editor at the corresponding location of the web application and run the application.
[0085] In actual application, during operation, see Figure 3 As shown, when the editor mouse hovers over MA, a pop-up window will display the code prompt preset for MA in this application. The code prompt includes annotation text and usage help information (such as usage), specifically: Description: Returns the simple moving average; Usage: MA(X,N): N-day simple moving average of X, algorithm (X1+X2+X3+...+Xn) / N, N supports variables.
[0086] From the above content, it can be seen that the information prompt method provided by this application has the following beneficial effects: by using Monaco Editor as the code editing container, the interface is elegant, beautiful and neat, with excellent performance, ready to use out of the box and strong stability; it is developer-friendly, with complete types, strong extensibility and simple secondary development; the editor bottom layer uses Web Worker to open a separate thread for code prompts, which will not affect the main page thread, improves the code running efficiency, and brings users a smooth interactive experience; by writing lexical analysis of a domain-specific language by yourself, you can control all the details of the domain-specific language and highly customize all the functions of the language.
[0087] Based on the same inventive concept as above, Figure 4 The present invention provides a schematic diagram of the structure of an information prompting device according to an embodiment of the present invention. The information prompting device 400 includes:
[0088] The acquisition module 401 is used to acquire text information input by a user on a page of a web application software;
[0089] Processing module 402, used to detect whether the text information is text information in a target domain specific language using an editor mounted by the web application software;
[0090] The processing module 402 is used to control the display module 403 to display prompt information corresponding to the text information obtained by the editor on the page of the web application software in response to detecting that the text information is text information in the target domain specific language.
[0091] In some embodiments of the present application, the processing module 402 is used to, in response to detecting that the text information is text information in a target domain-specific language, obtain identification information of the text information in the target domain-specific language using an editor, and search for a code prompter corresponding to the identification information; obtain prompt information found by the code prompter using the editor; and control the display module 403 to display the prompt information on the page of the web application software.
[0092] In some embodiments of the present application, the processing module 402 is used to input text information into the code prompter using an editor; and use the editor to obtain prompt information found by the code prompter according to a preset code prompt table of a target domain-specific language.
[0093] In some embodiments of the present application, the acquisition module 401 is used to detect that the input tool is hovering at a relevant position of the text information displayed on the page, and acquire the text information input by the user.
[0094] In some embodiments of the present application, the processing module 402 is used to call a target thread that is independent of the main program of the web application software, and use an editor to detect whether the text information is text information in a target domain-specific language; the processing module 402 is used to call the target thread, and in response to detecting that the text information is text information in a target domain-specific language, control the display module 403 to display prompt information on the page.
[0095] In some embodiments of the present application, the prompt information includes annotation text and / or usage help information corresponding to the text information.
[0096] The information prompt device provided by the present application obtains text information input by a user on a page of a web application software; uses an editor mounted on the web application software to detect whether the text information is text information in a target domain-specific language; in response to detecting that the text information is text information in a target domain-specific language, displays prompt information corresponding to the text information obtained by the editor on the page of the web application software; it can be seen that the present application is able to determine whether the user has entered a domain-specific language, and if the user has entered a specific language, provides prompt information of the associated code based on the text information entered by the user. In this way, in view of the fact that domain-specific speech has a high level of abstraction, the present application reduces the degree of language abstraction of domain-specific languages, expands the scope of application of domain-specific languages, enhances domain user experience, and improves product competitiveness.
[0097] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, Figure 5Schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. The electronic device 500 includes: at least one processor 501, a memory 502, and optionally, the electronic device 500 may further include at least one communication interface 503. The various components in the electronic device 500 are coupled together via a bus system 504. It can be understood that the bus system 504 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 504 .
[0098] Based on the hardware implementation of the above program modules, the communication interface 503 can exchange information with other communication devices;
[0099] The processor 501 is connected to the communication interface 503 to implement information interaction with other communication devices, and is used to execute the method provided by one or more of the above technical solutions when running the computer program;
[0100] A memory 502 on which the computer program is stored.
[0101] Specifically, processor 501 is used to obtain text information input by a user on a page of a web application software; use an editor mounted on the web application software to detect whether the text information is text information in a target domain-specific language; in response to detecting that the text information is text information in a target domain-specific language, display prompt information corresponding to the text information obtained by the editor on the page of the web application software.
[0102] In some embodiments of the present application, the processor 501 is used to, in response to detecting that the text information is text information in a target domain-specific language, obtain identification information of the text information in the target domain-specific language using an editor, and search for a code prompter corresponding to the identification information; obtain prompt information found by the code prompter using the editor; and display the prompt information on a page of the web application software.
[0103] In some embodiments of the present application, the processor 501 is used to input text information into the code prompter using an editor; and use the editor to obtain prompt information found by the code prompter according to a preset code prompt table in a target domain-specific language.
[0104] In some embodiments of the present application, the processor 501 is used to detect that the input tool is hovering at a relevant position of the text information displayed on the page, and obtain the text information input by the user.
[0105] In some embodiments of the present application, the processor 501 is used to call a target thread that is independent of the main program of the web application software, and use an editor to detect whether the text information is text information in a target domain specific language.
[0106] In some embodiments of the present application, the processor 501 is configured to call the target thread, and in response to detecting that the text information is text information in a target domain-specific language, display prompt information on a page.
[0107] In some embodiments of the present application, the prompt information includes annotation text and / or usage help information corresponding to the text information.
[0108] It can be understood that the memory 502 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Sync Link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 502 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0109] The memory 502 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device 500. Examples of such data include: any computer program for operating on the electronic device 500. The program for implementing the method of the embodiment of the present invention may be included in the memory 502.
[0110] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0111] In an exemplary embodiment, the electronic device 500 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the above method.
[0112] Based on the above embodiments, the embodiments of the present application further provide a computer product, including a computer program, which is executed by a processor to implement Figure 1 The corresponding embodiment provides steps in the information prompt method.
[0113] Based on the above embodiments, the embodiments of the present application further provide a storage medium, wherein the storage medium stores computer executable instructions, and the computer executable instructions are configured to execute Figure 1 The corresponding embodiment provides an information prompt method.
[0114] It should be noted that the above-mentioned computer storage medium can be a memory such as ROM, PROM, EPROM, EEPROM, FRAM, FlashMemory, magnetic surface storage, optical disk, or CD-ROM; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0115] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0116] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0118] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0121] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An information prompting method, characterized in that: The method comprises: Obtain text information entered by the user on the page of the web application software; Using the editor mounted on the web application software to detect whether the text information is text information in a target domain specific language; In response to detecting that the text information is text information in the target domain specific language, prompt information corresponding to the text information obtained by the editor is displayed on the page of the web application software.
2. The method according to claim 1, characterized in that In response to detecting that the text information is text information in the target domain specific language, displaying prompt information corresponding to the text information obtained by the editor on the page of the web application software includes: In response to detecting that the text information is text information in the target domain specific language, using the editor to obtain identification information of the text information in the target domain specific language, and searching for a code prompter corresponding to the identification information; Using the editor to obtain the prompt information found by the code prompter; The prompt information is displayed on a page of the web application software.
3. The method according to claim 2, characterized in that The step of using the editor to obtain the prompt information found by the code prompter includes: Using the editor to input the text information into the code prompter; The editor is used to obtain the prompt information found by the code prompter according to a preset code prompt table of the target domain specific language.
4. The method according to claim 3, characterized in that The step of obtaining text information input by a user on a page of a web application software includes: It is detected that the input tool is hovering at a position related to the text information displayed on the page, and the text information input by the user is acquired.
5. The method according to any one of claims 1 to 4, characterized in that The step of using the editor mounted on the web application software to detect whether the text information is text information in a target domain specific language includes: Invoking a target thread independent of the main program of the web application software, and using the editor to detect whether the text information is text information in the target domain specific language; Accordingly, in response to detecting that the text information is text information in the target domain specific language, displaying prompt information corresponding to the text information obtained by the editor on the page of the web application software includes: The target thread is called, and in response to detecting that the text information is text information in the target domain-specific language, the prompt information is displayed on the page.
6. The method according to any one of claims 1 to 4, characterized in that The prompt information includes annotation text and / or usage help information corresponding to the text information.
7. An information prompting device, characterized in that: include: An acquisition module is used to acquire text information input by a user on a page of a web application software; A processing module, used for detecting whether the text information is text information in a target domain specific language by using an editor mounted on the web application software; The processing module is used to control the display module to display prompt information corresponding to the text information obtained by the editor on the page of the web application software in response to detecting that the text information is text information in the target domain specific language.
8. An electronic device, characterized in that: include: a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 6.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.