blob: 45cbb6a31f8937404a02d53260799d583c5849c9 [file] [log] [blame]
#
# Copyright 2018, Sander van Harmelen
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Below are some search/replace regex values (within single quotes)
used within Sublime to format the API docs from the website.
Maybe I'll add another function for this later on, but for now
this also works fine...
Search: '<div.*\n<h5>(.*)</h5>\n<ul>\n<li>'
Replace: '$1'
Search: '<a.*>(.*)</a>\n</li>\n<li>'
Replace: ' $1'
Search: '<a.*>(.*)</a>\n</li>\n</ul>\n</div>'
Replace: ' $1'
Search: '</div>\n.*\n'
Replace: ''
Search: '^([\S]+)$'
Replace: '},\n"$1Service": {'
Search: '^([\S]+)\ ([\S]+)[^{]$'
Replace: '},\n"$1$2Service": {'
Search: ' \(A\)$'
Replace: ''
Search: '^ ([\S]+)$'
Replace: ' "$1",'