CN113535153A - Method, device, equipment and medium for encoding custom label - Google Patents

Method, device, equipment and medium for encoding custom label Download PDF

Info

Publication number
CN113535153A
CN113535153A CN202110793237.XA CN202110793237A CN113535153A CN 113535153 A CN113535153 A CN 113535153A CN 202110793237 A CN202110793237 A CN 202110793237A CN 113535153 A CN113535153 A CN 113535153A
Authority
CN
China
Prior art keywords
custom
tag
custom tag
identification information
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110793237.XA
Other languages
Chinese (zh)
Inventor
邢培康
王凯
李炯
何子南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110793237.XA priority Critical patent/CN113535153A/en
Publication of CN113535153A publication Critical patent/CN113535153A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a coding method of a custom tag, which can be applied to the technical field of finance. The coding method of the custom label comprises the following steps: inquiring configuration files of the custom tags in the working space; analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag; displaying the identification information of the custom label on the coding page; when the identification information of the custom tag of the coding page is clicked and dragged to the designated position of the coding page, the code content of the custom tag is generated and displayed at the designated position, and the code content comprises the identification information code and the content information code of the custom tag. The coding method of the self-defined label can improve coding efficiency. The disclosure also provides a device, an apparatus and a medium for encoding the custom tag.

Description

Method, device, equipment and medium for encoding custom label
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method, an apparatus, a device, and a medium for encoding a custom tag.
Background
For example, in an encoding environment using a programming language such as Java, custom tags are often used, and although some self-contained custom tags are available, for a programmer, some tags with complex functions need to be defined by themselves, and encoding efficiency when the custom tags are used after definition is low.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method, an apparatus, a device, and a medium for encoding a custom tag that can improve encoding efficiency.
According to a first aspect of the present disclosure, there is provided an encoding method of a custom tag, including: inquiring configuration files of the custom tags in the working space; analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag; displaying the identification information of the custom label on the coding page; when the identification information of the custom tag of the coding page is clicked and dragged to the designated position of the coding page, the code content of the custom tag is generated and displayed at the designated position, and the code content comprises the identification information code and the content information code of the custom tag.
According to the embodiment of the disclosure, the method for encoding the custom tag further comprises: and importing the custom tag into a project of the workspace, or defining the custom tag in the workspace.
According to an embodiment of the present disclosure, the workspace includes at least one project, and querying the configuration file of the custom tags present in the workspace includes: and searching a file with a configuration file format of the custom tag in each project of the workspace according to the address of each project of the workspace.
According to the embodiment of the disclosure, the configuration file of the custom tag is analyzed to obtain the identification information and content information of the custom tag; scanning a file with a configuration file format of a custom tag in a project of a workspace;
identifying the contents of the configuration file; and obtaining the identification information and the content information of the custom label.
According to the embodiment of the disclosure, displaying the identification information of the custom tag on the coding page comprises: and displaying the identification information of the custom tag on a side bar of the code page.
According to the embodiment of the disclosure, displaying the identification information of the custom tag on the coding page further comprises: and displaying part information contained in the custom label and description information corresponding to the part on a side bar of the coding page.
According to the embodiment of the disclosure, the method for encoding the custom tag further comprises: the content information code is modified.
According to an embodiment of the present disclosure, the identification information includes a tag id and/or a tag name, and the content information includes a tag attribute and/or a tag description.
A second aspect of the present disclosure provides an apparatus for encoding a custom tag, including: the configuration file query module of the user-defined label is used for querying and identifying the configuration file of the user-defined label in the working space; the configuration file analysis module of the custom tag is used for analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag; the user-defined label display module is used for displaying the identification information of the user-defined label on the coding page; and the code content generating module is used for generating and displaying the code content of the custom label at the designated position when the identification information of the custom label of the coding page is clicked and dragged to the designated position of the coding page, wherein the code content comprises the identification information code and the content information code of the custom label.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of encoding the custom tag described above.
The fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions, which when executed by a processor, cause the processor to perform the above-mentioned method of encoding a custom tag.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a method, apparatus, device and medium for encoding a custom tag according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of encoding a custom tag according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method of encoding a custom tag according to another embodiment of the present disclosure;
FIG. 4 schematically shows a flowchart of querying a profile of custom tags present in a workspace of operation S201;
fig. 5 schematically shows a flowchart of parsing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag in operation S202;
fig. 6 schematically shows a flowchart of operation S203 of displaying identification information of a custom tag on a code page;
FIG. 7 is a block diagram schematically illustrating an apparatus for encoding a custom tag according to an embodiment of the present disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement the method of encoding a custom tag according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The present disclosure belongs to the field of computer technology, and also belongs to the field of artificial intelligence and big data technology. The programming method and the programming device for the custom tag in the embodiment of the disclosure can be used in the financial field and can also be used in any field except the financial field, and the application field of the programming method and the programming device for the custom tag is not limited by the disclosure.
It should be noted that, in the technical solution of the present disclosure, the acquisition, storage, application, and the like of the personal information of the related user all conform to the regulations of the related laws and regulations, and necessary security measures are taken without violating the good customs of the public order.
The embodiment of the disclosure provides a method for coding a custom tag, which comprises the following steps: inquiring configuration files of the custom tags in the working space; analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag; displaying the identification information of the custom label on the coding page; when the identification information of the custom tag of the coding page is clicked and dragged to the designated position of the coding page, the code content of the custom tag is generated and displayed at the designated position, and the code content comprises the identification information code and the content information code of the custom tag.
The coding method of the custom label of the embodiment of the disclosure has at least one of the following advantages:
1) corresponding code content can be directly generated according to the custom tag, and programmers do not need to use old codes for reference when using the custom tag or review configuration files of the custom tag, so that programming is faster and more efficient;
2) the automatic generation of the code content can improve the quality of the coding: problems such as a certain letter or a certain symbol are easy to occur in manual coding, and the situation can be avoided by automatically generating code content;
3) the programming operation is more flexible through clicking and dragging, and the programming efficiency is improved.
Fig. 1 schematically illustrates an application scenario diagram of the encoding of a custom tag according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the encoding method of the custom tag provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the encoding apparatus of the custom tag provided by the embodiment of the present disclosure may be generally disposed in the server 105. The encoding method of the custom tag provided by the embodiment of the present disclosure may also be performed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the encoding device of the custom tag provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The method for encoding the custom tag of the disclosed embodiment will be described in detail below with fig. 2 to 6 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flow chart of a method of encoding a custom tag according to an embodiment of the present disclosure.
As shown in fig. 2, the method 200 for encoding a custom tag of this embodiment includes operations S201 to S204:
in operation S201, querying a profile of a custom tag existing in a workspace;
in operation S202, parsing the configuration file of the custom tag to obtain identification information and content information of the custom tag;
in operation S203, displaying identification information of the custom tag on the code page;
in operation S204, when the identification information of the custom tab of the encoded page is clicked and dragged to a designated position of the encoded page, the code content of the custom tab is generated and displayed at the designated position, where the code content includes the identification information code and the content information code of the custom tab.
The embodiments of the present disclosure are described by taking JSP (Java server page) coding as an example, where "tag" is an XML element, and "custom tag" is a JSP tag that a user can implement according to his own needs. "workspace" refers to a collection of related items, i.e. related items are placed in the same workspace, and generally, for a certain programming task, there is a corresponding workspace, which includes multiple items, and "item" refers to a collection of source code. A "configuration file" is a computer file that may be some computer program configuration parameters and initial settings. When the user realizes the custom tag, a configuration file of the custom tag is generated and stored in a project of the working space.
In the technical solution of the embodiment of the present disclosure, first, a configuration file of a custom tag existing in a workspace is queried, and the configuration file of the custom tag is used as a basis for obtaining relevant information of the custom tag, and the identification information and content information of the custom tag can be obtained by parsing the configuration file of the custom tag. After the identification information and the content information of the custom tag are obtained, the identification information of the tag is displayed on the coding page, when a programmer writes a program on the coding page, the programmer can select the corresponding custom tag according to the identification information of the custom tag when needing to use a certain custom tag, click the identification information of the custom tag and drag the custom tag to a specified position of the coding page, and the code content of the custom tag can be generated and displayed at the specified position and comprises the identification information code and the content information code of the custom tag. The "code content" referred to herein is a code format representing a specific content, and in the embodiment of the present disclosure, the Java language is taken as an example, and the "code content" is identification information and content information representing a custom tag in the Java code format.
The coding method of the custom label of the embodiment of the disclosure has at least one of the following advantages:
1) corresponding code content can be directly generated according to the custom tag, and programmers do not need to use old codes for reference when using the custom tag or review configuration files of the custom tag, so that programming is faster and more efficient;
2) the automatic generation of the code content can improve the quality of the coding: problems such as a certain letter or a certain symbol are easy to occur in manual coding, and the situation can be avoided by automatically generating code content;
3) the programming operation is more flexible through clicking and dragging, and the programming efficiency is improved.
It should be noted that the method 200 for encoding a custom tag according to the embodiment of the present disclosure is implemented by providing a plug-in. Specifically, the method is a plug-in of a Java Integrated Development Environment (IDE), and the principle of providing the plug-in is as follows: an interface is defined in the IDE system and provided to the programmer who, after implementing the interface, packages the code into jar (zip) for upload to the IDE and informs the IDE of the name of the implementation class, and the IDE can then call the plug-in, which is also launched when the IDE is launched.
As shown in fig. 3, the method 300 for encoding a custom tag according to another embodiment of the present disclosure further includes operation S301:
in operation S301, a custom tab is imported into a project of a workspace or defined in the workspace.
It should be understood that when a programmer defines a custom tag, the content related to the custom tag is stored in the workspace, and the specific defined custom tag may be directly defined in the workspace, or may be a Java project existing in another location of the local disk, and the custom tag is defined in the Java project, and is imported into the project of the workspace by means of import. Taking Esclipse as an example of an integrated development environment, the Import mode can use a file- > Import menu to Import Java items in other positions into items of a workspace.
According to the technical scheme of the embodiment of the disclosure, the related information of the user-defined label can be stored in the working space in two ways, so that the wider user-defined label is covered, and subsequent query is facilitated.
Referring to fig. 2 and 4, according to an embodiment of the present disclosure, the workspace includes at least one item, and querying the configuration file of the custom tab existing in the workspace in operation S201 may include operation S11:
in operation S11, a file in the profile format having the custom tag in each item of the workspace is searched according to the address of each item of the workspace.
In the technical scheme of the embodiment of the disclosure, the file with the configuration file format of the custom tag in each item can be accurately and efficiently queried through operation S11, and then the custom tag in each item is determined.
It should be understood that the configuration file with the custom tag has a specific format, such as the ". times. tld" file, and the file with the format is queried, i.e., the file with the format is determined to be the configuration file with the custom tag.
With reference to fig. 2 and 5, according to an embodiment of the present disclosure, the parsing the configuration file of the custom tab in operation S202 to obtain the identification information and the content information of the custom tab may include operations S21 to S23;
in operation S21, a file in a profile format having a custom tag in a project of a workspace is scanned;
identifying the contents of the configuration file in operation S22;
in operation S23, identification information and content information of the custom tag are obtained.
In the technical scheme of the embodiment of the disclosure, the identification information and the content information of the custom tag can be obtained by scanning and identifying the configuration file of the custom tag, that is, the content related to the custom tag is divided according to the mode required by a programmer.
It should be noted that, when defining the custom tag in the workspace, the file with the configuration file format of the custom tag in the project in the workspace can be directly identified and scanned; when the custom tag is imported into a project of the workspace, an interception function can be added to the plug-in for intercepting and identifying the file with the configuration file format of the custom tag, wherein the function of "identifying" can be realized through a self-contained file editing function in a Java integrated development environment. Specifically, the tag id, tag description, tag attribute (described below), etc. from the defined tag can be identified and stored in the memory as structured data.
It should be noted that the specific parsing method may be parsing through a Bean parsing function provided in the Java integrated development environment, or parsing through an XML parsing method.
As shown in fig. 2 and 6, according to an embodiment of the present disclosure, the displaying the identification information of the custom tab on the code page in operation S203 may include operation S31:
in operation S31, identification information of the custom tab is displayed in a sidebar of the encoded page.
In the technical scheme of the embodiment of the disclosure, the identification information of the custom tag is displayed on the side column of the coding page, so that the programmer can pay attention to the custom tag in the programming process, and the coding efficiency is improved.
As shown in fig. 2 and 6, according to an embodiment of the present disclosure, the displaying the identification information of the custom tab on the code page in operation S203 may further include operation S32:
in operation S32, part information included in the custom tab and description information corresponding to the part are displayed in a sidebar of the code page.
It should be noted that the custom tab is a tab defined by a programmer according to actual needs, and may have some complicated custom tabs, and these complicated custom tabs may further include different components such as some components, and in the technical solution of the embodiment of the present disclosure, by displaying component information included in the custom tab and description information corresponding to the components on a side bar of a code page, the programmer can clearly see the structure of the custom tab (for example, what components are included in a certain custom tab) when using the certain custom tab, thereby improving programming efficiency.
It should be further noted that the sidebar of the programming page is also provided by a plug-in, and all components and corresponding descriptions in the current custom tag can be generated by using the self-contained functions in the Java integrated development environment and displayed in a JSP editor in a welting mode.
As shown in fig. 3, the method 300 for encoding a custom tag according to another embodiment of the present disclosure may further include operation S306:
in operation S306, the content information code is modified.
It should be understood that there are various forms of the content information of the custom tag, which is exemplified by the content information of the tag attribute, and some tag attributes have different values in different application scenarios, so that when the custom tag is defined in the previous period, the content that changes according to the application scenario can be used as an argument, and specifically, after the content code of the custom tag is generated, a programmer can modify the content information code, that is, modify the content of the argument that changes according to the application scenario, so that the tag attribute has a specific value in a specific application scenario. In the technical scheme of the embodiment of the disclosure, different application scenes can be adapted by modifying the content information code, and the reusability and the programming efficiency of the custom label are improved.
According to an embodiment of the present disclosure, the identification information may include a tag id and/or a tag name, and the content information includes a tag attribute and/or a tag description. It should be understood that "tag id" is a unique identification or label for the custom tag and "tag name" is the name that the programmer has for the custom tag. In the technical scheme of the embodiment of the disclosure, the complete information of the custom tag adapted to the programming language and the programming environment can be obtained through the identification information and the content information of the custom tag, so that the method is suitable for the specific programming language and the programming environment, and the coding efficiency is improved.
It should be noted that, the above-mentioned encoding method for the custom tag of the embodiment of the present disclosure is implemented by a plug-in, where the plug-in is a program written by an application program interface conforming to a certain specification, and therefore, each function embodied in the above encoding method for the custom tag is implemented by a specific program.
It should be further noted that, all above take Java as an example, a programmer programs in a programming environment corresponding to Java language, and actually, in other programming languages and programming environments corresponding to other languages, if a user-defined tag can be defined by the programmer, the above method can also be applied to the programming environments of other programming languages, and is not described herein again.
Based on the self-defined label coding method, the disclosure also provides a self-defined label coding device. The apparatus will be described in detail below with reference to fig. 7.
Fig. 7 schematically shows a block diagram of a structure of an apparatus for encoding a custom tag according to an embodiment of the present disclosure.
As shown in fig. 7, the apparatus 400 for encoding a custom tag of this embodiment includes a profile query module 410 for a custom tag, a profile parsing module 420 for a custom tag, a custom tag display module 430, and a code content generation module 440.
The custom tagged profile query module 410 is used to query and identify the custom tagged profiles that exist in the workspace. In an embodiment, the profile query module 410 of the custom tag may be configured to perform the operation S201 described above, which is not described herein again.
The configuration file parsing module 420 of the custom tag is configured to parse the configuration file of the custom tag to obtain the identification information and the content information of the custom tag. In an embodiment, the profile parsing module 420 of the custom tag may be configured to perform the operation S202 described above, which is not described herein again.
The custom tag display module 430 is configured to display the identification information of the custom tag on the code page. In an embodiment, the custom tag displaying module 430 may be configured to perform the operation S203 described above, which is not described herein again.
The code content generating module 440 is configured to generate and display the code content of the custom tag at the designated position when the identification information of the custom tag of the encoded page is clicked and dragged to the designated position of the encoded page, where the code content includes the identification information code and the content information code of the custom tag. In an embodiment, the code content generating module 440 may be configured to perform the operation S204 described above, which is not described herein again.
According to the embodiment of the present disclosure, any multiple modules of the profile query module 410, the profile parsing module 420, the custom tag display module 430, and the code content generation module 440 of the custom tag may be combined into one module to be implemented, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the custom tag profile query module 410, the custom tag profile parsing module 420, the custom tag display module 430, and the code content generation module 440 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the custom tab profile query module 410, the custom tab profile parsing module 420, the custom tab display module 430, and the code content generation module 440 may be at least partially implemented as a computer program module that, when executed, may perform corresponding functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement the method of encoding a custom tag according to an embodiment of the present disclosure.
As shown in fig. 8, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 505 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the item recommendation method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 501. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 509, and/or installed from the removable medium 511. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A method for encoding a custom tag, comprising:
inquiring configuration files of the custom tags in the working space;
analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag;
displaying the identification information of the custom label on the coding page;
when the identification information of the custom tag of the coding page is clicked and dragged to the designated position of the coding page, generating and displaying the code content of the custom tag at the designated position, wherein the code content comprises the identification information code and the content information code of the custom tag.
2. The method for encoding a custom tag according to claim 1, further comprising:
the custom tab is imported into the project of the workspace, or,
custom tags are defined in the workspace.
3. The method for encoding custom tags according to claim 1, wherein said workspace comprises at least one project, and said querying the profile of the custom tags existing in the workspace comprises:
and searching a file with a configuration file format of the custom tag in each project of the workspace according to the address of each project of the workspace.
4. The method for encoding the custom tag according to claim 1, wherein the parsing of the configuration file of the custom tag to obtain the identification information and the content information of the custom tag comprises;
scanning a file with a configuration file format of a custom tag in a project of a workspace;
identifying the contents of the configuration file;
and obtaining the identification information and the content information of the custom label.
5. The method for encoding the custom tag according to claim 1, wherein the displaying the identification information of the custom tag on the encoding page comprises:
and displaying the identification information of the custom tag on a side bar of the code page.
6. The method for encoding the custom tag according to claim 5, wherein the displaying the identification information of the custom tag on the encoded page further comprises:
and displaying part information contained in the custom label and description information corresponding to the part on a side bar of the coding page.
7. The method for encoding a custom tag according to any of claims 1-5, further comprising:
modifying the content information code.
8. The method for encoding the custom tag as claimed in claim 6, wherein the identification information comprises a tag id and/or a tag name, and the content information comprises a tag attribute and/or a tag description.
9. A custom tag encoding device, comprising:
the configuration file query module of the user-defined label is used for querying and identifying the configuration file of the user-defined label in the working space;
the configuration file analysis module of the custom tag is used for analyzing the configuration file of the custom tag to obtain the identification information and the content information of the custom tag;
the user-defined label display module is used for displaying the identification information of the user-defined label on the coding page;
and the code content generating module is used for generating and displaying the code content of the custom label at the designated position when the identification information of the custom label of the coding page is clicked and dragged to the designated position of the coding page, wherein the code content comprises the identification information code and the content information code of the custom label.
10. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
CN202110793237.XA 2021-07-13 2021-07-13 Method, device, equipment and medium for encoding custom label Pending CN113535153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110793237.XA CN113535153A (en) 2021-07-13 2021-07-13 Method, device, equipment and medium for encoding custom label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110793237.XA CN113535153A (en) 2021-07-13 2021-07-13 Method, device, equipment and medium for encoding custom label

Publications (1)

Publication Number Publication Date
CN113535153A true CN113535153A (en) 2021-10-22

Family

ID=78127843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110793237.XA Pending CN113535153A (en) 2021-07-13 2021-07-13 Method, device, equipment and medium for encoding custom label

Country Status (1)

Country Link
CN (1) CN113535153A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697064A (en) * 2018-10-31 2019-04-30 深圳壹账通智能科技有限公司 A kind of generation method and device of the customized page
CN111026753A (en) * 2019-12-04 2020-04-17 北京明略软件系统有限公司 Label storage method and device based on tree structure
CN111176629A (en) * 2019-12-24 2020-05-19 中国建设银行股份有限公司 Application development method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697064A (en) * 2018-10-31 2019-04-30 深圳壹账通智能科技有限公司 A kind of generation method and device of the customized page
CN111026753A (en) * 2019-12-04 2020-04-17 北京明略软件系统有限公司 Label storage method and device based on tree structure
CN111176629A (en) * 2019-12-24 2020-05-19 中国建设银行股份有限公司 Application development method and device

Similar Documents

Publication Publication Date Title
CN108984714B (en) Page rendering method and device, electronic equipment and computer readable medium
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN109359194B (en) Method and apparatus for predicting information categories
CN109558323B (en) System, method and apparatus for debugging pages
CN110795649A (en) Target page display method, device and system and electronic equipment
CN110196790A (en) The method and apparatus of abnormal monitoring
CN113419740B (en) Program data stream analysis method and device, electronic equipment and readable storage medium
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN115599386A (en) Code generation method, device, equipment and storage medium
CN109582580B (en) System, method and apparatus for debugging pages
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN116720489B (en) Page filling method and device, electronic equipment and computer readable storage medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN116382703B (en) Software package generation method, code development method and device, electronic equipment and medium
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN109901934A (en) The method and apparatus for generating interface help document
CN110888583B (en) Page display method, system and device and electronic equipment
CN113535153A (en) Method, device, equipment and medium for encoding custom label

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination