CN117193739A - Script editing method and device - Google Patents

Script editing method and device Download PDF

Info

Publication number
CN117193739A
CN117193739A CN202311453698.8A CN202311453698A CN117193739A CN 117193739 A CN117193739 A CN 117193739A CN 202311453698 A CN202311453698 A CN 202311453698A CN 117193739 A CN117193739 A CN 117193739A
Authority
CN
China
Prior art keywords
script
indentation
input information
rule
language type
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
CN202311453698.8A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech Co Ltd
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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202311453698.8A priority Critical patent/CN117193739A/en
Publication of CN117193739A publication Critical patent/CN117193739A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application discloses a script editing method and device, and relates to the technical field of computers. The method comprises the following steps: monitoring text box input operation, triggering a script editing program, acquiring script input information corresponding to the input operation, calling a rule system of a script language type, and determining a corresponding script language type rule; responding to the script language type rule corresponding to the indentation rule, determining an indentation type and an indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule. The script development flow is simple and has high convenience.

Description

Script editing method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a script editing method and device.
Background
At present, the application of the script development tool is very common, a convenient and quick script debugging function is provided for a user, and the script writing efficiency of the user can be greatly improved.
In implementing the embodiments of the present application, the inventors have found that at least the following problems exist in the prior art:
when a user edits a script at a web page end, because of the lack of a script auxiliary tool adapted to the web page end in the prior art, the user not only needs to manually input all script characters in a corresponding web page text box, but also needs to check grammar errors word by word in the web page text box, which results in low development efficiency and high error rate. Therefore, most users choose to complete script editing in a special development tool client in advance and copy the script editing into a designated webpage text box, so that the whole set of script development processing flow is more complex and has poor convenience.
Disclosure of Invention
In view of the above, the embodiment of the application provides a script editing method and device, which can solve the technical problems of complex process flow and poor convenience of the existing script development.
In a first aspect, an embodiment of the present application provides a script editing method, including monitoring a text box input operation, triggering a script editing program, further obtaining script input information corresponding to the input operation, and calling a rule system of a script language type to determine a corresponding script language type rule according to the script input information, where the script language type rule system includes a retraction rule, a keyword emphasis display rule, and an abbreviation complement rule; responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule.
Optionally, invoking the abbreviation mapping table to perform an abbreviation completion process includes:
locating a text position of a cursor in response to the presence of script input information in the text box to determine an abbreviation in the script input information;
identifying a script language type corresponding to the script input information, and calling an abbreviation mapping table corresponding to the script language type to obtain a full term based on abbreviation matching;
the abbreviations in the text boxes are updated according to the full names.
Optionally, before determining the indentation type and the indentation unit corresponding to the script input information, the method further includes:
monitoring a preset first control;
calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule;
in response to the first control being triggered, or in response to the feature value reaching a preset threshold,
the script language type rule is determined to correspond to the indentation rule to perform an automatic indentation process according to the indentation rule.
Optionally, performing an automatic indentation process according to an indentation rule includes:
sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences;
the indentation rule includes indentation units corresponding to the plurality of indentation types, respectively;
to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
Optionally, extracting keywords in the script input information and calling a preset keyword list to execute the highlighting process includes:
inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in a text box in an emphasized mode.
Optionally, identifying a script language type corresponding to the script input information includes:
judging whether target attribute information exists in a preset second control;
if yes, extracting language name information of the script input information from the target attribute information so as to correspondingly determine the script language type of the script input information;
if not, identifying the script language type corresponding to the script input information.
Optionally, identifying a script language type corresponding to the script input information includes:
calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively;
matching the grammar characteristic information with script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information;
Inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
Optionally, locating the text position of the cursor to determine an abbreviation in the script input information includes:
detecting the text position of a cursor;
in the script input information, determining a former separator of the text position as a first separator, and determining a latter separator of the text position as a second separator;
and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
In a second aspect, an embodiment of the present application further provides a script editing apparatus, including:
the monitoring unit is configured to monitor the text box input operation, trigger the script editing program, further acquire script input information corresponding to the input operation, and call a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation completion rule;
an automatic indentation unit configured to determine an indentation type and an indentation unit corresponding to the script input information in response to the script language type rule corresponding to the indentation rule, and further to execute an automatic indentation process according to the indentation type and the indentation unit;
An emphasis display unit configured to extract keywords in script input information and call a preset keyword list to perform an emphasis display process in response to the script language type rule corresponding to the keyword emphasis display rule;
and an abbreviation completion unit configured to call the abbreviation mapping table to perform an abbreviation completion process in response to the script language type rule corresponding to the abbreviation completion rule and upon detecting that the abbreviation is included in the script input information.
Optionally, the abbreviation completion unit is further configured to:
locating a text position of a cursor in response to the presence of script input information in the text box to determine an abbreviation in the script input information;
identifying a script language type corresponding to the script input information, and calling an abbreviation mapping table corresponding to the script language type to obtain a full term based on abbreviation matching;
the abbreviations in the text boxes are updated according to the full names.
Optionally, the automatic retraction unit is further configured to:
monitoring a preset first control;
calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule;
in response to the first control being triggered, or in response to the feature value reaching a preset threshold,
The script language type rule is determined to correspond to the indentation rule to perform an automatic indentation process according to the indentation rule.
Optionally, the automatic retraction unit is further configured to:
sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences;
the indentation rule includes indentation units corresponding to the plurality of indentation types, respectively;
to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
Optionally, the highlighting unit is further configured to:
inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in a text box in an emphasized mode.
Optionally, the abbreviation completion unit is further configured to:
judging whether target attribute information exists in a preset second control;
if yes, extracting language name information of the script input information from the target attribute information so as to correspondingly determine the script language type of the script input information;
If not, identifying the script language type corresponding to the script input information.
Optionally, the abbreviation completion unit is further configured to:
calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively;
matching the grammar characteristic information with script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information;
inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
Optionally, the abbreviation completion unit is further configured to:
detecting the text position of a cursor;
in the script input information, determining a former separator of the text position as a first separator, and determining a latter separator of the text position as a second separator;
and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the script editing method of any of the embodiments described above.
In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which when executed by a processor implements the script editing method of any of the above embodiments.
In a fifth aspect, an embodiment of the present application provides a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the script editing method of any of the above embodiments.
One embodiment of the above application has the following advantages or benefits: firstly, triggering a script editing program by monitoring text box input operation, further acquiring script input information corresponding to the input operation, and calling a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation complement rule; responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule. By automatically performing intelligent optimization on script input information, automatic indentation, keyword highlighting and abbreviation completion are realized, so that the program development efficiency of a user can be improved to a great extent, the script development flow is simple, and the method has high convenience.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a further understanding of embodiments of the application and are not to be construed as unduly limiting embodiments of the application. Wherein:
fig. 1 is a schematic diagram of the main flow of a script editing method according to a first embodiment of the present application;
fig. 2 is a schematic diagram of an abbreviation complement main flow of a script editing method according to a second embodiment of the present application;
FIG. 3 is a schematic diagram of an automatic retract main flow of a script editing method according to a third embodiment of the present application;
fig. 4 is a schematic diagram showing a key word highlighting main flow of a script editing method according to a fourth embodiment of the present application;
fig. 5 is a schematic diagram of main units of a script editing apparatus according to a first embodiment of the present application;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application are described below with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the embodiments of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of main flow of a script editing method according to a first embodiment of the present application, as shown in fig. 1, the script editing method includes:
step S101, a text box input operation is monitored, a script editing program is triggered, script input information corresponding to the input operation is further obtained, a rule system of a script language type is called, and corresponding script language type rules are determined according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation completion rule.
Specifically, the script input information corresponding to the input operation may include a script language type selected by the user, script data input by the user, keywords, and the like, and the content of the script input information is not specifically limited in the embodiment of the present application.
The rules hierarchy of scripting language types may include indentation rules that may be used to automatically indentation based on indentation types and indentation units. By way of example, the indentation type may be a tab indentation or a space indentation, etc., and embodiments of the present application are not particularly limited to the indentation type. The indentation unit may be, for example, 1, indicating indentation of one tab if the indentation type is a tab indentation (i.e., tab indentation) at this time, and indicating indentation of one space if the indentation type is a space indentation at this time.
The keyword highlighting rule included in the rule system of the script language type can be used for highlighting or highlighting keywords in script input information matched with a preset keyword list so as to prompt a user to edit the corresponding script and improve the correctness and efficiency of script editing.
The abbreviation completion rule included in the rule system of the script language type can be used for automatically filling corresponding full-term words for some input abbreviations when a user writes a script, and the full-term words can be sentences or code blocks corresponding to the abbreviations by way of example, and the form of the full-term words is not particularly limited in the embodiment of the application.
In the embodiment of the application, through the monitoring processing of the text box, the technical aim of automatically triggering the editing processing of the corresponding script input information while monitoring the user input operation can be achieved, so that the use experience of the user on the text box established by the embodiment of the application is improved. Further, the text box can be a webpage text box or a client text box.
Step S102, responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing the automatic indentation process according to the indentation type and the indentation unit.
By way of example, the indentation type may be a tab indentation or a space indentation, etc., and embodiments of the present application are not particularly limited to the indentation type. The indentation unit may be, for example, 1, indicating indentation of one tab if the indentation type is a tab indentation (i.e., tab indentation) at this time, and indicating indentation of one space if the indentation type is a space indentation at this time.
Step S103, responding to the script language type rule corresponding to the keyword highlighting rule, extracting keywords in the script input information and calling a preset keyword list to execute the highlighting process.
The highlighting may be, for example, highlighting, or displaying in a color specified by the user, or may be zooming in or panning, and the type of highlighting is not particularly limited in the embodiments of the present application. The keywords in the script input information may be, for example, "select", "from" or "as", and the embodiment of the present application does not specifically limit the keywords in the script input information.
Step S104, responding to the rule of the script language type corresponding to the abbreviation completion rule and calling the abbreviation mapping table to execute the abbreviation completion process when the fact that the abbreviation is contained in the script input information is detected.
The abbreviations in the script input information may be "sout", "fort", etc., and the content and form of the abbreviations in the script input information are not particularly limited in the embodiments of the present application.
According to the embodiment of the application, through monitoring the text box input operation, triggering a script editing program, further acquiring script input information corresponding to the input operation, and calling a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation completion rule; responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule. By automatically performing intelligent optimization on script input information, automatic indentation, keyword highlighting and abbreviation completion are realized, so that the program development efficiency of a user can be improved to a great extent, the script development flow is simple, and the method has high convenience.
Fig. 2 is a schematic diagram of an abbreviation complement main flow of a script editing method according to a second embodiment of the present application. As shown in fig. 2:
in step S201, in response to the existence of the script input information in the text box, the text position of the cursor is positioned to determine an abbreviation in the script input information.
Specifically, locating the text position of the cursor to determine an abbreviation in the script input information includes: detecting the text position of a cursor; in the script input information, determining a former separator of the text position as a first separator, and determining a latter separator of the text position as a second separator; and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
Detecting a position of a cursor operated by a user in a script input information text, for example, a position A, and determining a character string between a former separator (namely a first separator) and a latter separator (namely a second separator) corresponding to the position A in the script input information as an acronym. Thereby making the determination of the abbreviations more convenient, faster and more accurate.
In the embodiment of the application, the object to be edited and optimized can be rapidly and accurately confirmed by acquiring the input text in the text box and positioning the cursor in the text box. The script input information is text content input by a webpage end user (or a client end user) in a text box, and comprehensive grammar checking and grammar labeling are required; the abbreviation may be text content that is being input by the web end user (or client user) and is not being input, and real-time input prompt is required. Through the processing of the step, the efficiency and the accuracy of script writing in the webpage-end text box (or the client-end text box) provided by the embodiment of the application can be effectively improved in grammar correction, shorthand prompt and the like, so that the technical gap that the webpage-end text box lacks a script editing auxiliary tool in the prior art is filled.
In a further embodiment, in order to configure a corresponding script editing function for the text box at the web page end provided by the embodiment of the present application, rule systems corresponding to different script language types may be input in advance at the rear end of the corresponding web page end. Further, the different script language types may include shell language, javaScript language, perl language, python language, etc., and may be determined specifically according to a service common script language; the rule system corresponding to each script language type can comprise a retraction rule, a keyword highlighting rule, an abbreviation complement rule and the like, so that the rule system can be used as a data support for carrying out automatic retraction correction processing, automatic keyword highlighting processing and automatic abbreviation complement processing on a script input by a user. Meanwhile, when the user is detected to enter the front end of the webpage text box provided by the embodiment of the application for the first time, all preset script processing data are firstly obtained from the rear end and stored locally, so that script input information input by the user can be conveniently and rapidly called, queried and edited.
In some embodiments, in order to accurately determine the abbreviation, so as to achieve the purpose of editing and prompting a text box user in real time, the text position where the cursor is located can be positioned in real time in the script input information, so that when the abbreviation is determined in the script input information, the text position where the cursor is located is accurately detected, and the former separator of the text position is determined in the script input information to serve as a first separator, and the latter separator of the text position is determined to serve as a second separator; a character string between the first separator and the second separator is intercepted, and an abbreviation is obtained based on the intercepted character string.
Step S202, a script language type corresponding to the script input information is identified, and an abbreviation mapping table corresponding to the script language type is called to obtain a full term based on abbreviation matching.
Specifically, identifying a script language type corresponding to script input information includes: judging whether target attribute information exists in a preset second control; if yes, extracting language name information of the script input information from the target attribute information so as to correspondingly determine the script language type of the script input information; if not, identifying the script language type corresponding to the script input information.
The preset second control may be, for example, an attribute key or a picture associated with a jump link, where the jump link is used to jump to a page containing the target attribute information. And the target attribute information can be obtained by clicking a preset second control. By way of example, the target attribute information may include language name information, language type information, and the like, and the embodiment of the present application does not specifically limit the target attribute information. The embodiment of the application does not specifically limit the preset second control. In this embodiment, in order to sufficiently receive information input by a user, so that a language type of inputting script input information in a text box can be more directly and efficiently confirmed, when determining a script language type corresponding to the script input information, whether target attribute information exists in a preset second control can be judged; if yes, extracting language name information of the script input information from the target attribute information so as to correspondingly determine the script language type of the script input information; if not, identifying the script language type corresponding to the script input information.
In some embodiments, the preset second control may be a web-side control for inputting an information language name for an input script reserved for a user, and specifically, the second control may be selected in a form of a drop-down selection box, a single selection box or an input box (including but not limited to text input, voice data) and the like.
Through the processing of the step, the script input information parameter information input by the user and the script input information input by the user can be fully combined, and the script language type corresponding to the script input information can be more quickly and accurately confirmed. By way of example, under the condition that the number of script input information characters in the text box provided by the embodiment of the application is small and the corresponding script language type cannot be accurately distinguished, through the interpretation processing of the target parameter information in the step, the corresponding script language type can be rapidly confirmed, so that automatic optimization processing can be performed on the script input information content input by the user as soon as possible in subsequent processing.
Specifically, identifying a script language type corresponding to script input information includes: calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively; matching the grammar characteristic information with script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information; inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
In this embodiment, in order to improve accuracy of identifying a scripting language type in the present technical solution, when identifying a scripting language type corresponding to scripting input information, a plurality of preset grammar feature information may be called, where the plurality of grammar feature information corresponds to the plurality of scripting language types respectively; matching the grammar characteristic information with script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information; inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information. For example, the plurality of language feature information may be a plurality of regular expressions respectively set according to the grammars of the plurality of types of script input information, so that each regular expression is used for performing matching calculation on the script input information one by one, if matching is successful, the script input information is indicated to conform to the grammars of the script input information of the corresponding type, and thus the language type of the script input information written by the user can be determined.
In this embodiment, through the processing of this step, on the one hand, the script language type of the input script input information in the text box can be rapidly identified, so that the rule system category for optimizing the script input information can be further determined; on the other hand, after confirming that the corresponding rule is an abbreviation completion rule, whether the content currently input by the user (i.e. the script input information) contains the shorthand content (i.e. whether the script input information contains the abbreviation) can be judged in real time through the mapping relation query in the related abbreviation mapping table, so that the corresponding script input information prompt processing or script input information supplementing processing is carried out for the subsequent execution. For example, if the acronym is "fori", the corresponding full acronym may be queried in the acronym mapping table as a for loop code block, and automatic replenishment or automatic prompting is performed on the user input using the for loop code block. The full term may be the complete content mapped by the abbreviated content input by the user and queried in the abbreviated mapping table.
In some embodiments, in order to achieve the technical effect of timely performing writing prompt when a user inputs, after matching to obtain a full term, corresponding editing prompt information is generated according to the full term, and floating window display is performed on the editing prompt information in a text box. Through the processing of the step, the logic for writing the subsequent script input information of the user can be effectively prompted and inspired, and further the development efficiency of the script input information development by the user through the text box in the embodiment of the application is improved.
Step S203, updating the abbreviations in the text box according to the full-term.
In the embodiment, through the processing of this step, the input intention of the user can be accurately predicted and correspondingly filled, and each script character does not need to be manually input one by the user. In a further embodiment, the technical scheme can automatically update the position of the cursor according to the filling content without manually repositioning the cursor by a user, so that the program development efficiency of the user can be improved to a great extent. For example, if the abbreviation "sout" is detected and the corresponding complete content is "system.out.println (") ", the abbreviation is directly replaced by the full term and the cursor is updated to the text position between the double quotations. Through the processing of the step, the logic for writing the subsequent script input information of the user can be effectively prompted, inspired, corrected and complemented, and further the development efficiency of the script input information development by the user through the text box of the embodiment of the application is improved.
Fig. 3 is a schematic diagram of an automatic indentation main flow of a script editing method according to a third embodiment of the present application. As shown in fig. 3:
step S301, monitoring a preset first control.
For example, the first control may be a formatted key set on the corresponding web page end of the text box, so as to trigger when a mouse click event (or a user touch click event) is detected. Through the setting of the first control in the step, the text box in the embodiment of the application can be assisted to receive the indentation optimization signal sent by the user more sensitively, so that the user needs can be responded more timely.
Step S302, calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule.
For example, the quantization rule may be a rule for performing quantization calculation on a duration of time when the script input information has been input by the user, or the number of characters input by the user, or the logic integrity of the script input information has been written by the user, and the calculated feature value may be used for predicting the integrity of the script input information space.
In step S303, in response to the first control being triggered, or in response to the feature value reaching a preset threshold, it is determined that the scripting language type rule corresponds to the indentation rule, so as to perform an automatic indentation process according to the indentation rule.
The preset threshold value setting meaning is as follows: under the condition that the space of the script input information input by the user is enough, if the automatic indentation processing is executed on the script input information at the moment, the expected script input information optimizing effect can be achieved.
Specifically, the automatic indentation process is executed according to the indentation rule, including: sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences; the indentation rule includes indentation units corresponding to the plurality of indentation types, respectively; to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
In this embodiment, in order to perform comprehensive and accurate automatic indentation processing on the script input information, sentence segmentation processing may be performed on the script input information when an automatic indentation process is performed according to an indentation rule, so as to obtain a plurality of script input information sentences; the indentation rule includes indentation units corresponding to the plurality of indentation types, respectively; to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit. It should be noted that, the indentation hierarchy is a structure hierarchy corresponding to each script input information statement, for example, belongs to a second layer loop nested statement, or a specific function statement (such as if statement), or a specific code block statement, etc.; the first string of each script input information sentence is indented by a distance from the corresponding line head in the text box, such as a distance between two space keys, a distance between one TAB key, etc. Through the processing of the step, the hierarchical analysis and the indentation format correction of each statement in the script input information input by the user can be automatically processed, so that the time and experience of the user for checking the indentation errors by himself can be saved.
Step S304, determining the indentation type and the indentation unit corresponding to the script input information, and executing the automatic indentation process according to the indentation type and the indentation unit.
When the script language type corresponds to the indentation rule, the execution subject may execute an automatic indentation process according to the indentation rule, and in particular, the executing the automatic indentation process may include: determining a retraction type and a retraction unit corresponding to the script input information, and executing an automatic retraction process according to the retraction type and the retraction unit.
In some embodiments, in order to achieve the technical purpose of flexibly executing automatic indentation on script input information according to user instructions, after determining a script language type corresponding to the script input information, a preset first control may be monitored; calculating a characteristic value corresponding to the input operation according to a preset quantization rule; in response to the first control being triggered, or in response to the feature value reaching a preset threshold, determining that the scripting language-type rule corresponds to a indentation rule, to perform an automatic indentation process according to the indentation rule. Therefore, according to the technical scheme, when the user forgets or does not click the formatting button (namely the first control) actively after inputting enough script input information content, the indentation correction of the script input information can be automatically executed, and the automatic indentation correction processing can achieve a certain script input information optimizing effect, so that the practicability of the script input information auxiliary editing function of the technical scheme is further enhanced.
Fig. 4 is a schematic diagram showing a key word highlighting main flow of a script editing method according to a fourth embodiment of the present application. As shown in fig. 4:
step S401, the rule is highlighted in response to the script language type rule corresponding to the keyword.
In the case where the script language type rule corresponds to the keyword emphasis display rule, step S402 is performed.
Step S402, inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in the script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in a text box in an emphasized mode.
In this embodiment, in order to improve the readability and visual intuitiveness of the input script input information in the text box, after determining the script language type corresponding to the script input information, a preset keyword list corresponding to the script language type may be queried, so that a plurality of keywords are identified in the script input information according to the preset keyword list, and each keyword included in the script input information is enhanced and displayed in the text box. Further, the enhanced display may include highlighting, marking, font format updating, or color filling, among others. Through the processing of the step, the script input information logic which is written by the user in the text box can be effectively combed and prompted, so that when the user reviews and thinks about the script input information content written in the text box, the corresponding visual effect is enhanced, the efficiency of writing the script input information by the user is further improved, the script development flow is simple, and the script development method has high convenience.
Fig. 5 is a schematic diagram of main units of a script editing apparatus according to an embodiment of the present application, and as shown in fig. 5, the script editing apparatus 500 includes a listening unit 501, an auto retract unit 502, an emphasis display unit 503, and an abbreviation complement unit 504.
The monitoring unit 501 is configured to monitor a text box input operation, trigger a script editing program, further obtain script input information corresponding to the input operation, and call a rule system of a script language type to determine a corresponding script language type rule according to the script input information, where the script language type rule system includes a retraction rule, a keyword emphasis display rule and an abbreviation complement rule.
The automatic indentation unit 502 is configured to determine an indentation type and an indentation unit corresponding to the script input information in response to the script language type rule corresponding to the indentation rule, and further execute an automatic indentation process according to the indentation type and the indentation unit.
And an emphasis display unit 503 configured to extract keywords in the script input information and call a preset keyword list to perform an emphasis display process in response to the script language type rule corresponding to the keyword emphasis display rule.
An abbreviation completion unit 504 configured to call the abbreviation mapping table to perform an abbreviation completion process in response to the scripting language type rule corresponding to the abbreviation completion rule and upon detecting that the abbreviation is contained in the script input information.
In some embodiments, the abbreviation completion unit 504 is further configured to: locating a text position of a cursor in response to the presence of script input information in the text box to determine an abbreviation in the script input information; identifying a script language type corresponding to the script input information, and calling an abbreviation mapping table corresponding to the script language type to obtain a full term based on abbreviation matching; the abbreviations in the text boxes are updated according to the full names.
In some embodiments, the auto-retract unit 502 is further configured to: monitoring a preset first control; calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule; in response to the first control being triggered, or in response to the feature value reaching a preset threshold, determining that the scripting language-type rule corresponds to a indentation rule, to perform an automatic indentation process according to the indentation rule.
In some embodiments, the auto-retract unit 502 is further configured to: sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences; the indentation rule includes indentation units corresponding to the plurality of indentation types, respectively; to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
In some embodiments, the highlighting unit 503 is further configured to: inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in a text box in an emphasized mode.
In some embodiments, the abbreviation completion unit 504 is further configured to: judging whether target attribute information exists in a preset second control; if yes, extracting language name information of the script input information from the target attribute information so as to correspondingly determine the script language type of the script input information; if not, identifying the script language type corresponding to the script input information.
In some embodiments, the abbreviation completion unit 504 is further configured to: calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively; matching the grammar characteristic information with script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information; inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
In some embodiments, the abbreviation completion unit 504 is further configured to: detecting the text position of a cursor; in the script input information, determining a former separator of the text position as a first separator, and determining a latter separator of the text position as a second separator; and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
In the embodiment of the present application, the script editing method and the script editing apparatus have a corresponding relationship in the specific implementation content, so that the repeated content is not described.
Fig. 6 illustrates an exemplary system architecture 600 in which a script editing method or script editing apparatus of embodiments of the present application may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having script editing processing screens and supporting web browsing, including but not limited to smartphones, tablet computers, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (merely an example) that provides support for script input information input by a user using the terminal devices 601, 602, 603. The background management server can monitor text box input operation, trigger a script editing program, further acquire script input information corresponding to the input operation, and call a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation completion rule; responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule. By automatically performing intelligent optimization on script input information, automatic indentation, keyword highlighting and abbreviation completion are realized, so that the program development efficiency of a user can be improved to a great extent, the script development flow is simple, and the method has high convenience.
It should be noted that, the script editing method provided in the embodiment of the present application is generally executed by the server 605, and accordingly, the script editing device is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing an embodiment of the present application. The terminal device shown in fig. 7 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data required for the operation of the computer system 700 are also stored. The CPU701, ROM702, and RAM703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, 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), an optical fiber, 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 context of this document, 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. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts 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 application. 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.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a listening unit, an auto-retract unit, an emphasis display unit, and an abbreviation complement unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, when the one or more programs are executed by the equipment, the equipment monitors the text box input operation, triggers a script editing program, further obtains script input information corresponding to the input operation, and calls a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation completion rule; responding to the script language type rule corresponding to the indentation rule, determining the indentation type and the indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit; responding to the keyword highlighting rule corresponding to the script language type rule, extracting keywords in script input information and calling a preset keyword list to execute highlighting process; and calling the abbreviation mapping table to execute the abbreviation completion process when the abbreviation is detected to be contained in the script input information in response to the script language type rule corresponding to the abbreviation completion rule.
According to the technical scheme provided by the embodiment of the application, the intelligent optimization is automatically carried out on the script input information, so that automatic indentation, key word highlighting and abbreviation completion are realized, the program development efficiency of a user can be improved to a great extent, the script development flow is simple, and the convenience is high.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (19)

1. A script editing method, comprising:
monitoring text box input operation, triggering a script editing program, further acquiring script input information corresponding to the input operation, and calling a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation complement rule;
Responding to the script language type rule corresponding to the indentation rule, determining an indentation type and an indentation unit corresponding to the script input information, and executing an automatic indentation process according to the indentation type and the indentation unit;
responding to the script language type rule corresponding to the keyword highlighting rule, extracting keywords in the script input information and calling a preset keyword list to execute highlighting process;
and calling an abbreviation mapping table to execute an abbreviation completion process when the script input information is detected to contain abbreviations in response to the script language type rule corresponding to the abbreviation completion rule.
2. The method of claim 1, wherein the invoking the abbreviation mapping table to perform an abbreviation completion process comprises:
locating a text position of a cursor in response to the presence of script input information in a text box to determine an abbreviation in the script input information;
identifying a script language type corresponding to the script input information, and calling an abbreviation mapping table corresponding to the script language type to obtain a full term based on the abbreviation matching;
and updating the abbreviations in the text box according to the full abbreviations.
3. The method of claim 1, wherein prior to said determining the indentation type and indentation unit for which the script input information corresponds, the method further comprises:
monitoring a preset first control;
calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule;
in response to the first control being triggered, or in response to the characteristic value reaching a preset threshold,
determining that the scripting language type rule corresponds to a retraction rule, so as to execute an automatic retraction process according to the retraction rule.
4. A method according to claim 3, wherein said performing an automatic indentation procedure according to said indentation rules comprises:
sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences;
the indentation rule includes indentation units corresponding to a plurality of indentation types, respectively;
to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
5. The method of claim 1, wherein the extracting keywords in the script input information and invoking a preset keyword list to perform an highlighting process comprises:
and inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in the script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in the text box in an emphasized mode.
6. The method of claim 2, wherein the identifying the scripting language type to which the scripting input information corresponds comprises:
judging whether target attribute information exists in a preset second control;
if yes, extracting language name information of script input information from the target attribute information so as to correspondingly determine the script language type of the script input information;
if not, identifying the script language type corresponding to the script input information.
7. The method of claim 6, wherein identifying the scripting language type to which the scripting input information corresponds comprises:
calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively;
Matching the plurality of grammar characteristic information with the script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information;
inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
8. The method of claim 2, wherein locating the text position of the cursor to determine an abbreviation in the script input information comprises:
detecting the text position of a cursor;
determining a previous separator of the text position as a first separator and a subsequent separator of the text position as a second separator in the script input information;
and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
9. A script editing apparatus, comprising:
the monitoring unit is configured to monitor text box input operation, trigger a script editing program, further acquire script input information corresponding to the input operation, and call a rule system of a script language type to determine a corresponding script language type rule according to the script input information, wherein the script language type rule system comprises a retraction rule, a keyword emphasis display rule and an abbreviation complement rule;
An automatic indentation unit configured to determine an indentation type and an indentation unit corresponding to the script input information in response to the script language type rule corresponding to an indentation rule, and further execute an automatic indentation process according to the indentation type and the indentation unit;
an emphasis display unit configured to extract keywords in the script input information and call a preset keyword list to execute an emphasis display process in response to the script language type rule corresponding to a keyword emphasis display rule;
and an abbreviation completion unit configured to call an abbreviation mapping table to perform an abbreviation completion process in response to the scripting language type rule corresponding to an abbreviation completion rule and when it is detected that the abbreviation is contained in the script input information.
10. The apparatus of claim 9, wherein the abbreviation completion unit is further configured to:
locating a text position of a cursor in response to the presence of script input information in a text box to determine an abbreviation in the script input information;
identifying a script language type corresponding to the script input information, and calling an abbreviation mapping table corresponding to the script language type to obtain a full term based on the abbreviation matching;
And updating the abbreviations in the text box according to the full abbreviations.
11. The apparatus of claim 9, wherein the automatic retraction unit is further configured to:
monitoring a preset first control;
calculating a characteristic value corresponding to the text box input operation according to a preset quantization rule;
in response to the first control being triggered, or in response to the characteristic value reaching a preset threshold,
determining that the scripting language type rule corresponds to a retraction rule, so as to execute an automatic retraction process according to the retraction rule.
12. The apparatus of claim 11, wherein the automatic retraction unit is further configured to:
sentence dividing processing is carried out on the script input information to obtain a plurality of script input information sentences;
the indentation rule includes indentation units corresponding to a plurality of indentation types, respectively;
to input an information sentence for each script in the text box: and determining a corresponding indentation type according to the text position of the script input information sentence, and inquiring a corresponding indentation unit of the indentation type in the indentation rule so as to carry out indentation correction on the script input information sentence according to the indentation unit.
13. The apparatus of claim 9, wherein the highlighting unit is further configured to:
and inquiring a corresponding preset keyword list of the script language type, identifying a plurality of corresponding keywords in the script input information according to the preset keyword list, and displaying the plurality of corresponding keywords in the text box in an emphasized mode.
14. The apparatus of claim 10, wherein the abbreviation completion unit is further configured to:
judging whether target attribute information exists in a preset second control;
if yes, extracting language name information of script input information from the target attribute information so as to correspondingly determine the script language type of the script input information;
if not, identifying the script language type corresponding to the script input information.
15. The apparatus of claim 14, wherein the abbreviation completion unit is further configured to:
calling a plurality of preset grammar characteristic information, wherein the grammar characteristic information corresponds to a plurality of script language types respectively;
matching the plurality of grammar characteristic information with the script input information respectively, and selecting grammar characteristic information successfully matched as target grammar characteristic information;
Inquiring the script language type corresponding to the target grammar characteristic information to be used as the script language type corresponding to the script input information.
16. The apparatus of claim 10, wherein the abbreviation completion unit is further configured to:
detecting the text position of a cursor;
determining a previous separator of the text position as a first separator and a subsequent separator of the text position as a second separator in the script input information;
and intercepting the character strings between the first separator and the second separator to obtain abbreviations.
17. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-8.
18. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-8.
19. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
CN202311453698.8A 2023-11-03 2023-11-03 Script editing method and device Pending CN117193739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311453698.8A CN117193739A (en) 2023-11-03 2023-11-03 Script editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311453698.8A CN117193739A (en) 2023-11-03 2023-11-03 Script editing method and device

Publications (1)

Publication Number Publication Date
CN117193739A true CN117193739A (en) 2023-12-08

Family

ID=88989035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311453698.8A Pending CN117193739A (en) 2023-11-03 2023-11-03 Script editing method and device

Country Status (1)

Country Link
CN (1) CN117193739A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103109289A (en) * 2011-07-18 2013-05-15 华为技术有限公司 Web-based script language editing method, system and web client
CN104699519A (en) * 2015-04-03 2015-06-10 四川效率源信息安全技术有限责任公司 Java script editor implemented based on GDI+ (graphics device interface plus) in combination with C# class library
CN109901829A (en) * 2019-01-29 2019-06-18 深圳点猫科技有限公司 A kind of code completion method and device of the third party library based on ace extension
CN112817583A (en) * 2021-04-19 2021-05-18 阿里云计算有限公司 Code editing method, device, server, user equipment and storage medium
CN114895908A (en) * 2022-05-17 2022-08-12 北京志凌海纳科技有限公司 Web application expression-based implementation method, system, equipment and storage medium
CN115202642A (en) * 2022-06-27 2022-10-18 麒麟软件有限公司 VSCode integrated development environment Shell-based intelligent editing method and plug-in tool
CN115936010A (en) * 2022-12-28 2023-04-07 南京大学 Text abbreviation data processing method and device
CN116339705A (en) * 2023-05-30 2023-06-27 天津金城银行股份有限公司 Webpage H5 editor code prompting method, device and equipment
CN116540986A (en) * 2023-04-23 2023-08-04 寂山智工(苏州)科技有限公司 Method for constructing text programming language code editor based on Web end
CN116842907A (en) * 2022-03-25 2023-10-03 上海御渡半导体科技有限公司 Code type identification method based on MarkDown markup language

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103109289A (en) * 2011-07-18 2013-05-15 华为技术有限公司 Web-based script language editing method, system and web client
CN104699519A (en) * 2015-04-03 2015-06-10 四川效率源信息安全技术有限责任公司 Java script editor implemented based on GDI+ (graphics device interface plus) in combination with C# class library
CN109901829A (en) * 2019-01-29 2019-06-18 深圳点猫科技有限公司 A kind of code completion method and device of the third party library based on ace extension
CN112817583A (en) * 2021-04-19 2021-05-18 阿里云计算有限公司 Code editing method, device, server, user equipment and storage medium
CN116842907A (en) * 2022-03-25 2023-10-03 上海御渡半导体科技有限公司 Code type identification method based on MarkDown markup language
CN114895908A (en) * 2022-05-17 2022-08-12 北京志凌海纳科技有限公司 Web application expression-based implementation method, system, equipment and storage medium
CN115202642A (en) * 2022-06-27 2022-10-18 麒麟软件有限公司 VSCode integrated development environment Shell-based intelligent editing method and plug-in tool
CN115936010A (en) * 2022-12-28 2023-04-07 南京大学 Text abbreviation data processing method and device
CN116540986A (en) * 2023-04-23 2023-08-04 寂山智工(苏州)科技有限公司 Method for constructing text programming language code editor based on Web end
CN116339705A (en) * 2023-05-30 2023-06-27 天津金城银行股份有限公司 Webpage H5 editor code prompting method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗宾斯: "《学习vi和Vim编辑器 中文版》", 南京东南大学出版社, pages: 362 - 363 *

Similar Documents

Publication Publication Date Title
CN109992589B (en) Method, device, server and medium for generating SQL (structured query language) statements based on visual page
CN107832045B (en) Method and apparatus for cross programming language interface conversion
US10229220B2 (en) Automatic entry of suggested translated terms in an online application program
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN111104479A (en) Data labeling method and device
US20190303430A1 (en) Systems and methods for dynamically building online interactive forms
US11455463B2 (en) Facilitating user interaction in online spreadsheets
CN112784588B (en) Method, device, equipment and storage medium for labeling text
CN113836877A (en) Text labeling method, device, equipment and storage medium
CN110705271B (en) System and method for providing natural language processing service
CN110727759B (en) Method and device for determining theme of voice information
CN114880498B (en) Event information display method and device, equipment and medium
EP4116889A2 (en) Method and apparatus of processing event data, electronic device, and medium
CN117193739A (en) Script editing method and device
CN111723134A (en) Information processing method, information processing device, electronic equipment and storage medium
CN114063868A (en) AI (Artificial intelligence) dragging modeling system and method, computer equipment and application
CN111611779B (en) Auxiliary text labeling method, device, equipment and storage medium thereof
CN113312900A (en) Data verification method and device
CN111753164A (en) Link event guiding method and device, electronic equipment and storage medium
CN111221610A (en) Page element acquisition method and device
CN115357160B (en) Document content selecting method, device, electronic equipment, medium and program product
CN115857941A (en) Code data display method and device, electronic equipment and storage medium
CN116415560A (en) Information input method and device
WO2022228099A1 (en) Information editing processing method and apparatus, device, and medium
US20220358931A1 (en) Task information management

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